To spawn some cities, follow the ensuing steps:
mainClass.monkeyfile, if you haven't done so already.
SetupGamemethod, to create three cities, we will use a FOR loop.
score = 0 'Create 3 cities For Local i:Int = 1 To 3
xposition will be at one-fourth of the canvas width. After that, close the FOR loop.
CreateCity((cWidth/4) * i) Next
We told our script to create three cities once the game starts.
As we actually want to see the cities in the game, we need to add something to ensure it happens.