
上QQ阅读APP看书,第一时间看更新
Time for action — modifying the gameClasses file
To modify the gameClasses
file, follow the ensuing steps:
- Open the
gameClasses.monkey
file. - Add an
Import
statement for therocketClass.monkey
file.Import launcherClass Import rocketClass
- Save the file and close it.
What just happened?
By adding this Import
statement, the rocket class can be used to create neat, deadly little missiles.