This is an ongoing tower defense game project. It's still a work-in-progress but we are getting there! :D
- Code Split: The code is split into multiple files (
sprites.py,wave.py, etc.) instead of one massive messy file so it's easier to read. - JSON Data: I use JSON files to store enemy stats, maps, and wave configurations like a dict.
- Asset Generator: Since I'm not good at drawing, I wrote a
generator.pyscript that uses basic math shapes and pygame to automatically create png assets and save them in a folder.
Just run main.py using Python 3 and Pygame!