Just as in the previous chapter, we will add a method called CreateLayers:
CreateLayers:
CreateLayers
game
Method CreateLayers:Int()
layerBackGround = eng.CreateLayer() layerGame = eng.CreateLayer() layerTitle = eng.CreateLayer()
Return 0 End
We want to group (layer) the game into three sections—one for the background, one for the actual game, and one for the title screen. Therefore, we have created the CreateLayers method.
18.118.149.19