Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prasha-au/pico-dino
Dinosaur game on a Pico with a P5 display.
https://github.com/prasha-au/pico-dino
chrome-dino-game circuitpython pico
Last synced: 3 months ago
JSON representation
Dinosaur game on a Pico with a P5 display.
- Host: GitHub
- URL: https://github.com/prasha-au/pico-dino
- Owner: prasha-au
- Created: 2024-08-24T14:45:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T00:17:04.000Z (5 months ago)
- Last Synced: 2024-09-27T09:22:08.990Z (4 months ago)
- Topics: chrome-dino-game, circuitpython, pico
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pico Dinosaur Game
A [Chrome offline dinosaur](chrome://dino/) game implemented on a Pi Pico with a P5 display and push button.
## Preview
https://github.com/user-attachments/assets/342aef60-0438-4e55-83aa-c784a220cda8
## Initial setup
### Python venv
1. Install `python3`
2. Create a virtualenv using `python -m venv .venv`
3. Activate the virtualenv using `.\.venv\Scripts\Activate.ps1`
4. Install the requirements using `pip install -r host-requirements.txt`### CircuitPython deps
```shell
circup install -r device-requirements.txt
```## Creating graphic assets
You can use [Piskel](https://www.piskelapp.com/) and import the BMP files to edit them.
For simplicity, they are saved as 256 color Bitmap in MS Paint. This results in green (usually) being index 250 in the palette and we make this transparent by fixed index in the code.