Gornova/MarteEngine

Renaming sheet parameter width and height in resources.xml

Closed this issue · 3 comments

http://slick.javaunlimited.net/viewtopic.php?f=3&t=4743
It's easy to forget that width and height are actually referring to the size of a single tile inside the Spritesheet.

Maybe width and height can be renamed to ... tilewidth and tileheight ?

Yes, renaming does make sense. Although tilewidth and tileheight are confusing as well.
Maybe something like spritewidth and spriteheight?

I came up with tile width, tile height because that's the name of the parameter in slick (tw and th). The spritesheet is divided up into tiles of equal size.

So spritewidth or tilewidth? I think the sprite is inside the tile, the sprite width can and often is smaller then the tile width. Gornova can I add this in 0.3?