Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antfarmar opened this issue Dec 21, 2015 · 0 comments
Open

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

antfarmar opened this issue Dec 21, 2015 · 0 comments

Comments

@antfarmar
Copy link
Owner

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. ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant