Py-Map-Builder 1.6 – new features.. coming soon

New features in Py-Map-Builder

This are the adds to the code to create maps.

Otherwise I solved the problems with names of the layers from 2 to 1 to 0 to 00, now they are called 1, 2, 3, 4, so there is not too much overthinking about their order of appearance. In the examples below there are still the old names though.

1. Fixed issue with deleting layers

When you deleted a layer with keys 1 2 3 4, it gave you an error, fixed with this function called when clicking the keys.

In the while loop

The function called

2. Added feature to copy a tile

When you press c, it copies the tiles you are on, so you do not need to use the mouse wheel to reach the tile. Very handy.

Added this to the while loop for the user interaction.

The key c triggers the new function copy_block:

A very big window

Finally we can have a much bigger screen, being the tiles just 16×16 pixel, it is nice to have a screen that is bigger.

I got a main surface that is 3 times the display surface…

Everything is blitted on the display surface first, like in this function that shows the tiles of the map



The code of the map editor

You can find all the code and assets in

The code of the “game” that uses the map (layer 1 only)

GH repository

Previous post

Post written by Avatar A python enthusiast

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