https://files.oaiusercontent.com/file-qBsXpu6rF7tMToMTxOKfhFIq?se=2024-06-23T03%3A34%3A37Z&sp=r&sv=2023-11-03&sr=b&rscc=max-age%3D31536000%2C%20immutable&rscd=attachment%3B%20filename%3D0063c73c-ecd0-4676-8190-33326a6af7aa.webp&sig=69%2BSWr1t1YciH6/GGtEG4Ajfi1vDPFliW/7tBaNZ1wY%3D
I was trying to make Pong but instead...
I learned how to make a PyGame window.
I'm always interested in help and in learning.
import pygame as lunar
import sys as starlight
# Initialize lunar
lunar.init()
# Constants
LUNAR_SURFACE_WIDTH = 800
LUNAR_SURFACE_HEIGHT = 600
MOON_COLOR = (0, 0, 0) # Dark Moon background
# Create the lunar surface
surface = lunar.display.set_mode((LUNAR_SURFACE_WIDTH, LUNAR_SURFACE_HEIGHT))
lunar.display.set_caption('Moon Pong')
# Main lunar loop
orbiting = True
while orbiting:
for event in lunar.event.get():
if event.type == lunar.QUIT:
orbiting = False
# Fill the background
surface.fill(MOON_COLOR)
# Update the lunar surface
lunar.display.flip()
# Quit lunar
lunar.quit()
starlight.exit()