A2 - Creating a New Level
Before doing this level, you will need to have a map created by following the directions here.
The following steps can then be used to use that map as the next level in your game.
-
In SpriteFusion, from the Export menu choose JSON. It will download a zip file.
-
Unzip the file, and move the extracted folder to the
mapssubfolder within the folder for you game. Rename the folderlevel_2(to match the naming format of the level 1 map). The directory structure for your game should now look something like this:

-
Create a new file within your game folder called
level_2.py. Paste the code fromlevel_1.pyintolevel_2.py. -
In your
level_2.pyfile, change all references to level 1 to level 2. There should be three of them. -
Run
level_2.py. It should contain your new map, but with all the sprites from your first level. -
Take a bit of time differentiate the sprite in level 2 from what you had in level 1.