Space shooter written in Python and Pygame.
Note
This project requires the UV Python tool.
UV manages the dependencies. There is no need to use pip
and requirements.txt
.
Clone the repo.
git clone https://github.com/mhnagaoka/shooter-do-mau.git
cd shooter-do-mau
Run the code.
uv run main.py
Create a virtual env and install its dependencies.
uv sync
Activate the virtual env.
source .venv/bin/activate
Run the code.
python main.py
You can also use the following environment variables:
SCALE_FACTOR
the factor to scale the game's native resolution to the screenSPRITE_DEBUG
shows the sprite bounding boxes and hit boxes
To see the rendered sprites and resulting animations, run the tool below.
python showcase.py
To check the program usage, pass the --help
argument.
python showcase.py --help
This tool is used to generate splines for the enemy trajectories.
To run it:
python spline_tool.py
How to use it:
- A: adds a spline control point
- D: when hovering a control point, deletes it
- mouse drag: drags a control point
- I: creates an aditional control point between the hovered one and the next
- H: show / hide spline drawing guides
- Enter: draws a ship following a trajectory and prints the control points on the console