We need to set the update rate, create an instance of the
ftEngine class from the fantomEngine, and load the texture (sprite sheet) that holds all the game graphics.
OnCreatemethod by setting the update rate.
Method OnCreate:Int() SetUpdateRate(60)
engvariable with an instance of our
eng = New engine
atlas = LoadImage("cctiles.png") Return 0 End
By modifying the
OnCreate method, we now have access to the fantomEngine. Also, we will set the update rate of the game to 60 frames per second.