Python - Become a Professional Programmer
- Create a Web Application with Flask
- Create a Web Application with Django
- Create a Flappy Bird Clone with PyGame
Progress so far...
The problem with the tutorial is that the code is fairly inconsistent, the structure isn't particularly great and there is no testing or comments.
Examples of this, are things like variable naming:
block_move = 3 x_block = surfaceWidth y_block = 0 block_width = 75
gameOver(): replay_or_quit():
Where to go from here?
Testing!
Before I start refactoring any of the code I really need to write some unit test, that way I can confirm that the functionality doesn't change whilst performing the refactoring.
Refactoring
All the functionality in the main game loop is crazy, and certainly doesn't have just one single responsibility.
Python Module
Conclusion
I will probably do the changes I mention above as I always think that If it's a Repo on my GitHub Account, then it's essentially a representation of my work and I'm not currently happy with how it is.
Thanks :)