Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a Invaild Tileset Reference
#6
Hi again,

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)
In the zipfile you provide, the associated "player.txt" required by "player.png" is missing. 

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 Smile
Reply


Messages In This Thread
RE: Getting a Invaild Tileset Reference - by megamarc - 11-13-2019, 08:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)