Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

game.py 229B

123456789101112
  1. import bge
  2. import FSM
  3. def main(cont):
  4. own = cont.owner
  5. dict = bge.logic.globalDict
  6. if 'game_inited' not in own:
  7. own['game_inited'] = True
  8. own['cont'] = cont
  9. dict['gameFSM'] = FSM.GameFSM(own)
  10. dict['gameFSM'].Execute()