Last active
November 6, 2016 23:33
-
-
Save codetravis/20600b1e1c09c5dc55126e484ff1c924 to your computer and use it in GitHub Desktop.
5.2 Add Default Layer and Scene
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FantomX_UsePhysics = True | |
Import fantomX | |
Class Game Extends App | |
Field engine:ftEngine | |
Field default_layer:ftLayer | |
Field default_scene:ftScene | |
Method OnCreate:Int() | |
engine = New ftEngine | |
default_scene = engine.GetDefaultScene() | |
default_layer = engine.GetDefaultLayer() | |
Return 0 | |
End | |
End | |
Function Main() | |
New Game() | |
End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment