game
. game
class already has fields for the instance of the engine
class and a field that will store if the app is suspended or not.Class game Extends App Field eng:engine Field isSuspended:Bool = False
Field txtScore:ftObject Field txtGameOver:ftObject Field txtFPS:ftObject
Field ball:ftObject Field font1:ftFont
Enemy
class and the ParticleEmitter
class.Field enemyList:=New List<Enemy> Field emitterList:=New List<ParticleEmitter>
Field layerBackGround:ftLayer Field layerGame:ftLayer Field layerTitle:ftLayer
Field sndHit:ftSound Field sndSelect:ftSound Field sndExplo:ftSound
Field atlas:Image Field gameMode:Int = gmMenu
Field cw:Float Field ch:Float
Field fps:Float Field score:Int = 0 Field tileCount:Int = 0 Field levelNum:Int = 0 Field lifes:Int = 0
Const gmMenu:Int = 1 Const gmPlay:Int = 2 Const gmGameOver:Int = 3
Const grpEnemy:Int = 1 Const grpBall:Int = 2 Const grpTile:Int = 3
Const btnPlay:Int = 10 Const btnExit:Int = 13 Const btnBack:Int = 14
Const tidParticle:Int = 20 Const tidGameOver:Int = 21 '--------------------------- 'Method OnCreate:Int()
Great, the data section is filled with everything that is needed.