Simple labyrinth in pygame

Another example of game in pygame: a labyrinth where you move the yellow square towards the red one.

Change the code

Some changes in the code


Add a custom background

If you want to add some details to the map, you can save the image of the map and add some details like the following in a drawing app, save the image and then load it in the game as background.

The code will change a bit…


Pygame map editor devlog

The devlog of the Pygame map editor. A work in progress to create a map editor to create maps with tiles with an example of a game that uses these maps. The current version is 1.5 of the map editor and 0.2 of the game, not yet ready for the 1.5 version of the editor (16.9.2020). Repository of the map editor