Maps
Maps (sometimes called Tilemaps) are used to draw the levels of your game.
Pyxen comes with a minimalistic map editor and functions to handle in code.
Using the Map Editor
Choose the associated sprite sheet
Change the Pixel Grid Size
You can choose from 8 or 16 pixels grid.
Make sure you use the same grid size for both sprite sheet and map, otherwise you will get some strange results.
Tips and Tricks
You are not necessarily tied to the sprite sheet associated with your map.
The normal way is to do :
def draw():
pyxen.map("level1")
pyxen.mdraw(0, 0, 0, 0, 16, 15)
And the map level1 will be drawn using the sprite sheet you tied in the editor.
But you could change the image just before calling the mdraw function to swap images, keeping the same map structure.
def draw():
pyxen.mmap("level1")
pyxen.image("winter")
pyxen.mdraw(0, 0, 0, 0, 16, 15)