slot_demo_0.mp4
slot_demo_1.mp4
- Five reels, each with three symbols in play at any given time
- 300x300 png image symbols that are easy to change via Python dictionary
- Easy-to-import audio (commented out by default)
- Basic win animation
- Basic UI
Basically just Pygame:
- Pygame - Python game library
- Images/Music/Sound effects
Pygame and Python3 are required, as well as the kidspace.ttf font in graphics/font/
pip install -r requirements.txt
From cmd/PowerShell:
python main.py
I have provided some basic symbols that don't look great but they work well enough. You can simply add a new directory and create a new symbol dictionary in settings.py to replace them. Same with audio files! See comments throughout for more info.
win_data is formatted as such:
{1: ['symbol_1', [1, 2, 3]], 3: ['symbol_2', [0, 1, 2]]}
I will probably try to recreate this in an actual game engine at some point. Potential future work includes:
- Better animations
- More win scenarios
- Simulations
- Web version
Clear Code: If you are new to Pygame, you need to watch Clear Code's videos. They are incredible!
Additionally, I had some help on delta_time/animation staggering as well as the music from two of my friends - thank you!