Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The OnObjectTouch method is updated as follows:
Method OnObjectTouch:Int(obj:ftObject, touchId:Int) Local xdiff:Float Local ydiff:Float
g.gmMenu.If g.gameMode = g.gmMenu Then
Select statement on the object's Tag property.Select obj.GetTag()
g.btnPlay (the play button). If yes, then start a new game.Case g.btnPlay g.StartNewGame()
g.btnScore (the score button). If yes, then show the high-score screen.Case g.btnScore g.ShowScore
g.btnExit (the exit button). If yes, then exit the app.Case g.btnExit g.eng.ExitApp(True)