Skip to content
0:00 / 0:00

#refactoring#python#gamearchitecture

Refactoring A Tower Defense Game In Python // CODE ROAST

ArjanCodes

345K subscribers • 2 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

260K views5 years ago1 recommendation

Programming languagesSoftware designPythonRefactoring and legacy codeDesign patterns

ArjanCodes analyzes and refactors a Python tower defense game to reduce coupling and improve architecture.

💡 Learn how to design great software in 7 steps: arjan.codes/designguide. 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. The code I worked on in this example is available here: github.com/ArjanCodes/2021-coderoast-towerdefense. 🎓 ArjanCodes Courses: arjancodes.com/courses. 💬 Join my Discord server: discord.arjan.codes. ⌨️ Keyboard I’m using: amzn.to/49YM97v. 🔖 Chapters: Intro Overview of the original code Code analysis A few quick minor fixes About game engines Creating a simple game engine Game object structure Creating the Tower Defense game subclass Communication between game objects Final thoughts #arjancodes #softwaredesign #python

Why it's here

1 person recommends this

What people say. Recommended as a great resource for learning how to identify code smells and refactor Python code.

u/TheMrCeeJin r/ExperiencedDevs • Recommends

On “[deleted by user]”

There is a dude on YouTube that specializes in refactoring other people's python code and games, he has lots of tips and you can see his thinking, how he identifies smells, what his process is for breaking it up etc. I'll dig out a link for you: link to this video