Wiki

Case Status
Log In

Wiki

 
Home ยป Samples»M2H Jump Game»M2H Jump Game, Game Over trigg…
Index
Navigation
Community Wiki

M2H Jump Game, Game Over trigger Fsm

If the player hits the bottom trigger, the game is over

this has to be the most simple Fsm! :) 

It simply watch for the player touching the bottom trigger, if that's the case this means the user failed to land on a platform -> Game over!

you'll notive that each Fsm tries to concentrate on a specific role. Here we don't try to tell other fsm what to do, we simply Fire a "GAME OVER" global events, any other Fsm having to react and do somethign specfici when the game is over simply needs to implement the "GAME OVER" event. This is the case of the Main UI Fsm, it catches up this "GAME OVER" event and pause the game and display the try again button.

Tags:

Last modified on 5/9/2012 4:04 AM by User.

  • RSS Feed