Skip to content

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 maps subfolder within the folder for you game. Rename the folder level_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 from level_1.py into level_2.py.

  • In your level_2.py file, 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.