This method will reset all score fields, deactivate the title layer, spawn the planes, and deactivate possibly visible status messages. It also starts the playback of the engine sound.
StartNewGame
to the game
class.Method StartNewGame:Int()
Millisecs()
.Seed = Millisecs()
score = 0 scoreC = 0
layerTitle.SetActive(False)
layerGame.RemoveAllObjects()
layerGame
.eng.SetDefaultLayer(layerGame)
SpawnPlayer() SpawnEnemy()
gmPlay
.gameMode = gmPlay
txtYouWin.SetActive(False) txtYouLoose.SetActive(False)
sndEngine.Play() Return 0 End
3.133.124.21