11-13-2019, 08:17 AM
Hi again,
Spritesets are loaded from a pair of files with the same base name, different extension:
Also, the funcion call to load the spriteset expects the base name without the extension, line 65 should be:
I see the documentation is not clear in this regard.
For a full working example in python, i recommend you to check this project:
https://github.com/megamarc/TilenginePythonPlatformer
Your interest is much appreciated too
Spritesets are loaded from a pair of files with the same base name, different extension:
- a png file with all the sprites packed together (player.png)
- a txt describing the rectangles and names of each individual graphic inside the big png. (player.txt)
Also, the funcion call to load the spriteset expects the base name without the extension, line 65 should be:
Code:
playerSprite = Spriteset.fromfile("player")
I see the documentation is not clear in this regard.
For a full working example in python, i recommend you to check this project:
https://github.com/megamarc/TilenginePythonPlatformer
Your interest is much appreciated too
