The first thing you need to do is add a new object to the gameClasses.monkey
file.
gameClasses.monkey
file. Import
statement for the cityClass.monkey
file.Import mainClass
Import cityClass
We have added an Import
statement for our new cityClass.monkey
file to the gameClasses.monkey
file. As we only import gameClasses.monkey
in all of our scripts, the new class will be automatically visible in them, and so will all the other objects we create later on too.
3.15.144.56