๐ป First, play the game python game.py. Use the arrows <> to move sideways and space to jump. Note the gravity and note the walls. There are multiple different tiles that are registered as walls.
๐ Go to the map editor. Notice, the purple and blue tiles are all solid walls. You can select the tiles on the bottom right. Then, draw with that selection in the map editor.
๐ป Add some new walls to the map. Then save, and replay the game.
๐ป Open the editer and draw your own wall asset. Be sure to draw it near the other wall tiles.
๐ป Then add your new tile into the map.
๐พ ๐ฌ Setting New Tiles as WALLS
When new WALL tiles are added, you must update the code accordingly.
๐ โ๏ธ Find the new x,y cordinate range of the WALL tiles. By hovering over the tile on the bottom left, it displays the x,y cordinate on the top.
In the screenshot, the new tile is located at (0,5)
๐ป In helpers.py, update the x,y range accordingly to your new tile range. Remember, in for i in range(start, stop) the stop value is not inclusive. So your stop value must be +1 above your desired number.
33
34
35
36
37
WALL_TILE_POSITIONS = []
# SET RANGES BASED ON X,Y IN MAP EDITORfor x in range(0,5):
for y in range(2,6):
WALL_TILE_POSITIONS.append((x,y))
๐ป Experiment and customize your own tileset! Feel free to google tileset pixel example to reference