To set up the layers, you need to add another method.
CreateLayers
into the game
class.Method CreateLayers:Int()
layerBackground
field.layerBackground = eng.GetDefaultLayer()
layerGame = eng.CreateLayer() layerGFX = eng.CreateLayer() layerGameOver = eng.CreateLayer() layerMenu = eng.CreateLayer() layerScore = eng.CreateLayer() layerTitle = eng.CreateLayer()
Return 0 End
Again, we have implemented a method to create all the layers we need in the game.
3.141.41.187