This video is a refactoring of a Tower Defense Game written in Python. In particular, I cover a few game architecture aspects and apply them to reduce the coupling in the example code. Get 20% off the Pro version of Tabnine, this video’s sponsor: https://bit.ly/ARJAN20. If you’re a student, you can get Tabnine Pro for free here: https://www.tabnine.com/students.
The code I worked on in this example is available here: https://github.com/ArjanCodes/2021-coderoast-towerdefense.
0:47 Overview of the original code
3:39 Code analysis
7:38 A few quick minor fixes
14:34 About game engines
16:22 Creating a simple game engine
23:46 Game object structure
27:12 Creating the Tower Defense game subclass
31:28 Communication between game objects
35:57 Final thoughts
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!