ผลต่างระหว่างรุ่นของ "Prg2/monkey game"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 2: แถว 2:
  
 
== Basic information ==
 
== Basic information ==
 +
 +
[[Image:Prg2-monkey-cover.png]]
  
 
* Repository: [https://github.com/jittat/monkeys-demo https://github.com/jittat/monkeys-demo]
 
* Repository: [https://github.com/jittat/monkeys-demo https://github.com/jittat/monkeys-demo]

รุ่นแก้ไขเมื่อ 01:25, 9 มีนาคม 2564

This is part of Programming 2 2563

Basic information

Prg2-monkey-cover.png

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.

See the diff here: [2]

Monkey-games-last-diff.png

This is the edit history for the game.

Prg2-monkey-edit-history.png