Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Two of the four text objects are dynamic and will display the current score of the player and the computer. Dynamic means they will be updated during the game with the current score. They are predefined, but are made invisible later on. They will display the WIN or LOSE message.
game class, called CreateInfoText.Method CreateInfoText:Int ()
eng.SetDefaultLayer(layerInfo)
txtScore = eng.CreateText(font1,"Player: "+score,10,0) txtScoreC = eng.CreateText(font1,"Computer: "+scoreC,cw-10,0,2)