https://github.com/esron/block_hero
https://github.com/esron/block_hero
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/esron/block_hero
- Owner: esron
- Created: 2021-10-09T00:55:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T22:48:17.000Z (over 4 years ago)
- Last Synced: 2025-06-29T00:52:02.264Z (12 months ago)
- Language: Python
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/esron/ppbgame/actions/workflows/linting.yml)
# BLOCK HERO
This game is a minimalist [Archero](https://play.google.com/store/apps/details?id=com.habby.archero&hl=pt_BR&gl=US) clone using [ppb](https://ppb.dev/)
## Project organization
In the `scenes` directory you are going to find a subfolder for every `Scene`. Every `Scene` is composed of a `scene.py` file (the `Scene` itself) and `Sprites` witch are in the `sprites` directory of the `Scene`.
Fonts are stored globally in the `fonts` directory.
A `Scene` should be responsible for all the logic that does not belongs to a `Sprite` in that `Scene`, and the scenes transactions logic.
A `Sprite` should holds all the sprite behavior and logic.
For examples, the `Player` sprite is responsible for moving the player, creating projectiles, etc., but not responsible for the pause and game over scenes transactions.
## Contributing
Create a Python virtual env:
```bash
$ python -m venv .venv
```
Install dependencies:
```bash
$ pip install -r requirements.txt
```
Install pre-commit:
```bash
$ pre-commit install
```