
上QQ阅读APP看书,第一时间看更新
Time for action — changing the gameClasses file again
The first thing you need to do is to add a new object to the gameClasses.monkey
file.
- Open the
gameClasses.monkey
file. - Add an
Import
statement for thelauncherClass.monkey
file.Import cityClass Import launcherClass
- Save the file and close it.
What just happened?
You have just added the launcher
class to the game, and it can be used now.