PyxelSand is a "falling sand" style game written with the Python game engine Pyxel
- Install Poetry
- Run
poetry install
in the root directory - Run
poetry run python -m sand_game
- (Optional) Run
poetry run pytest
to run unit tests
- Left click places a particle at the mouses location
- Right click removes a particle at the mouses location
- Keys 1-3 select the implemented particles
The game has an "environment" which keeps the state of each pixel and what particle is in it. Each particle extends from a base particle class, and upon initialization provides a list of behaviours such as "Flammable", "Fall", and "Ephemeral" to define how the particle behaves.