Pygame Tile Tutorial

Posted by admin
Tutorial

Map loader for TMX FilesLeif Theden (bitcraft), 2011-2014v3.19.3 - for python 2.7 and 3.3+If you have any problems or suggestions, please open an issue on the github page.I am also often lurking #pygame on freenode. Feel free to contact me.released under the LGPL v3PyTMX is a map loader for python/pygame designed for games. It provides smarttile loading with a fast and efficient storage base. Bitcraft 2015-04-06 08:35:17Thanks for your interest and your comments.

IMO, there are plenty of generic tutorials about making maps with Tiled and what tiles are, objects, etc. I have a few examples of how to use the library in the source.check out the apps folder. It demonstrates all the basic tasks that you can do with pytmx. Beyond that, I don't really have the time to make a step-step tutorial.

The API is really quite simple and is all documented. Has the API documentation. I guess you would say the audience of pytmx isn't new developers, it's more for people who already know what they need to do, and pytmx takes the pain out of parsing XML, variable type conversion, shape loading, properties, and of course image loading.

Pygame Tile Tutorial Video

Pygame Tile TutorialTile

Pygame Tile Tutorial Software

When looking through the source, the important bits are in the docstrings. Hope that helps.If you need a more friendly way to use Tiled maps, please check out my other project pyscroll It has a friendlier way to load maps and use with pygame with the ScrollGroup class.