Skip to content

mhnagaoka/shooter-do-mau

Repository files navigation

Shooter do Mau

Space shooter written in Python and Pygame.

Shooter do Mau gameplay

Installing and running

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

Developing

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 screen
  • SPRITE_DEBUG shows the sprite bounding boxes and hit boxes

Sprite showcase

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

Spline tool

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

About

A space shooter made with Pygame

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages