ผลต่างระหว่างรุ่นของ "Prg2/space (applying design patterns)"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 14: แถว 14:
 
* Bullet (in <tt>elements.py</tt>)
 
* Bullet (in <tt>elements.py</tt>)
 
* Enemy (in <tt>elements.py</tt>)
 
* Enemy (in <tt>elements.py</tt>)
 +
 +
== Getting started ==
 +
 +
This is an individual assignment, but you should still use branches in git for managing your work.  You should use the following template as a starter code.
 +
 +
* Template: [https://github.com/jittat/tk-pacman tk-pacman]
 +
 +
Since this is the second time you work on design patterns, the instructions would be less specific and you can use your judgement more freely to improve the code.
 +
 +
== Patterns ==

รุ่นแก้ไขเมื่อ 22:20, 24 มีนาคม 2564

This is part of Programming 2 2563

Overview

In this assignment, you will apply design patterns to the provided Space Fighter code.

Prg2-space-fighter.png

Understanding the current code

There are 4 main classes:

  • SpaceGame
  • Ship (in elements.py)
  • Bullet (in elements.py)
  • Enemy (in elements.py)

Getting started

This is an individual assignment, but you should still use branches in git for managing your work. You should use the following template as a starter code.

Since this is the second time you work on design patterns, the instructions would be less specific and you can use your judgement more freely to improve the code.

Patterns