Instantly share code, notes, and snippets.

What would you like to do?
9.1 Add a Game Over Scene
#FantomX_UsePhysics = True
Import fantomX
Import character
Import projectile
Import custom_engine
Class Game Extends App
Field engine:ftEngine
' create a play scene and a game over scene and a game over layer
Field play_layer:ftLayer
Field play_scene:ftScene
Field game_over_scene:ftScene
Field game_over_layer:ftLayer
Field player:Character
Field enemies:List<Character>
Field last_enemy_time:Float
Field next_enemy_interval:Float
Field projectiles:List<Projectile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment