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.
CreateTitleScreen
to the game
class.Method CreateTitleScreen:Int ()
layerTitle
.eng.SetDefaultLayer(layerTitle)
Local box:ftObject = eng.CreateBox(cw,ch,cw/2,ch/2)
Local tx1:ftObject = eng.CreateText(font1,"Air Dogs 1942",cw/2,ch/4,1)
2.0
.tx1.SetScale(2.0)
Local tx2:ftObject = eng.CreateText(font1,"Press 'P' to play",cw/2,ch/2+20, 1)
Local tx3:ftObject = eng.CreateText(font1,"Press 'ESC' to end the game", cw/2,ch/2+120,1)
Local p1:ftObject = eng.CreateImage(atlas,0,0,64,64,cw/2-ch/8,ch/6)
45
degrees.p1.SetAngle(45)
315
degrees.Local p2:ftObject = eng.CreateImage(atlas,64,0,64,64,cw/2+ch/8,ch/6) p2.SetAngle(315)
Return 0 End