A small project to get familiar with pygame and the basic structure of a Python game program.
- Python 3.12+
- uv
pygame(managed viauvinpyproject.toml)
Install dependencies with:
uv sync- Run the main script with:
uv run main.py- If everything is working, you should see output similar to:
Starting Asteroids with pygame version: 2.6.1main.py– Entry point of the program, importspygameand prints its version.pyproject.toml– Project and dependency configuration.uv.lock– Lockfile generated byuvto pin dependency versions..python-version– Specifies the Python version used for this project.
- This is just the initial boilerplate to verify that
pygameis installed and working. - Future steps will gradually add the actual Asteroids game logic and rendering.