Method SaveHighScore:Int ()
SaveToStringmethod of the engine's
scoreListto save it to a string.
Local hs:String = g.eng.scoreList.SaveToString()
SaveState. Then close this method.
SaveState(hs) Return 0 End
By creating more specialized help methods, we can easily plug them into the game where we need them. Also, we have avoided creating redundant code, which means we don't have duplicate code sections in the game.