Prg2/monkey game
- This is part of Programming 2 2563
Basic information
- Repository: https://github.com/jittat/monkeys-demo
Materials
Part 1
Part 2
Part 3
Final code
We notice that there are many duplicate lines in Sprite and Text (in gamelib.py). Therefore, we extract a new base class, called GameCanvasElement from both classes. We also have to update all attributes from sprites to elements so as to be more inclusive about things inside the list.
This is the edit history for the game.