Time for action — creating the title screen
This screen will show some graphics of our planes, the game title, and two instructional messages on how to start the game or exit it.
- To create the title screen, add a method called
CreateTitleScreen to the
Method CreateTitleScreen:Int ()
- Set the default layer to
- Next, create a box object covering the whole canvas. We want it to be white and that is its default color.
Local box:ftObject = eng.CreateBox(cw,ch,cw/2,ch/2)
- Now, create a local text object for the game title. Place it in the center of the canvas and at one-fourth of the canvas height.
Local tx1:ftObject = eng.CreateText(font1,"Air Dogs 1942",cw/2,ch/4,1)
- Scale the text object up by a factor ...