antfarmar / Unity-3D-Asteroids

A simple Asteroids clone. In 3D.
The Unlicense
65 stars 15 forks source link

Timed Game Tokens: Powerups, UFOs, etc. #39

Open antfarmar opened 8 years ago

antfarmar commented 8 years ago

Currently there exists 2 types of randomly spawned "timed" game tokens: powerups & UFOs. More could be added in the future, so the implementation design & architecture should be clean, clear, solid & robust.

Though these varying tokens seem disparate in nature (friend vs. enemy), they mostly share common game functionality and should be implemented and handled as such. There are various ways to go about this...

Possible Implementations

  1. Define a base class of TimedToken : GameToken that defines/implements their behaviour.
  2. As standard game tokens, but let a SpawnManager handle the details of timing/spawning.
  3. A combination of 1 & 2.
  4. ???