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

Refactor game states #49

Open
Nigh7Sh4de opened this issue Jul 24, 2015 · 3 comments
Open

Refactor game states #49

Nigh7Sh4de opened this issue Jul 24, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@Nigh7Sh4de
Copy link
Owner

At the moment things are just expected to know about other things and what they are supposed to do in certain events.

For example: clicking the Game Over text, the gameOver object needs to know to reset some stuff
(This is without even mentioning the currently atrocious code controlling the store/pausing mechanic)

Sugessted Fixes

  1. Create game states
  2. Do something more interesting 😃
@Nigh7Sh4de Nigh7Sh4de self-assigned this Jul 24, 2015
@Nigh7Sh4de Nigh7Sh4de added this to the v 0.7 milestone Jul 24, 2015
@Nigh7Sh4de
Copy link
Owner Author

On App Launch:

  • spawn init
  • infoButt init
  • highScore init
  • gameOver init

@Nigh7Sh4de
Copy link
Owner Author

On start game (from death or app launch):

  • tank init
  • storeButt init
  • spawn reset
  • score init
  • infoButt kill
  • health init
  • gameOver kill
  • activeBulet init

@Nigh7Sh4de
Copy link
Owner Author

on pause:

  • tank hide
    • look disable
    • shoot disable
  • store init
  • spawn freeze
  • activeBulett kill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant