How to make your own levels


Here's a detailed explanation of the level format, and how people would make new levels. Feel free to share them!


Firstly, the level files are stored in the game folder's "levels" folder. They are named (number).lvl, but they're just stored as a standard text document (you can just open them in a notepad/et cetera).

To make a new level, make a new file following this naming format, making sure that there are no gaps in the numeric values. (For example, if there are 16 levels in the folder, and you want to add a 17th, you should call it "17.lvl". Or if you want to make your own level pack, you can just remove all the default levels and make new ones, starting from 1.)

The level format isn't particularly complicated: the first line contains the size of the level, in tiles (first number is X size, second number is Y size). The second line contains the player's starting location, where 0, 0 is the top left corner followed by the player's starting colour (0 is none, 1 is red, 2 is yellow, 3 is blue). Finally, the next (level y size) lines contain the level data, in one of two formats. Either there can be a grid of tile IDs, seperated by spaces, or there can be a grid of two tile IDs, without a space between, where the first is the tile's target colour to win (or 0 for "don't care"), and the second is the tile's starting type. Finally, to find the tile IDs, simply go into the assets folder, then images, then open up the tilemap. You can count the tiles from the top left, starting at 0 and then going through the alphabet when reaching. For example, a wall is 0, a paintable tile is 2, a red paint bucket is 9, and a water bucket is c.

That should be everything you need to know to make levels. I might make a dedicated level editor tool in game at some point, but for now this will have to work.

Get The Adventures of Sponge McGee

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.