In this video I'm introducing lives and money into the tower defense game I'm writing. More importantly, we learn about the existence and the use of class variables, with real-life examples on when and how to use them.
We follow the traditional tower defense game patterns: when the enemies reach their destination, we lose one life, and once we lost all lives, we're dead. Also the enemies drop loot (money) when killed, and we can use that money to buy further turrets.
Download the game's source code for free here: https://gitlab.com/fastomatic/eternal-stronghold.git
Download
0 formats
No download links available.
Building a Tower Defense Game Makes Python Programming FUN! | NatokHD