1 (edited by Adorable 2010-08-19 01:06:55)

Topic: actual tile dimensions?

Teeworlds tileset .png's are 1024x1024 and appear to be composed of 16 by 16 tiles, each one 64x64 pixels.
However, my understanding is that the game doesn't display the borders of those 64 pixel tiles, as explained in the second post here: http://www.teeworlds.com/forum/viewtopic.php?id=4792.
If you look very closely at the included pngs (grass_main, grass_doodads, etc), you see that at the tile divisions there are horizontal and vertical "lines" where the adjacent line of pixels is duplicated. Presumably these might as well be black or any other color, since the game leaves them out.
I haven't gotten tileset_borderfix to work right, but my initial assumption was that it generates this for you when you feed it a 1024x1024 png with 64px tiles sitting right next to each other. But unless there's some extremely fine rescaling going on, and I don't think there is since it's a small program, this can't make sense, since it needs to add lines. If there's no rescaling and the input was 1024x1024, then the output would need to be 1040x1040 or 1056x1056, depending on whether the "grid" lines are supposed to be 1 or 2 pixels thick (not at the edges). Or some other number if it was supposed to be 2 pixels thick at the edges too.
So, what gives? Are proper Teeworlds tiles actually supposed to be 62x62 pixels, with a 1 pixel border around each tile that the game doesn't display? If so, it's totally undocumented and all the random forum posts that we have instead of documentation say otherwise...

2

Re: actual tile dimensions?

this grid is not correct, the map editor does not use edges, are 64x64 tiles and there's nothing left

Proximamente... TODAS TUS DUDAS SERÁN RESUELTAS.
Tutoriales, consejos, descargas, etc... todo sobre teeworlds y EN CASTELLANACO!!!
JODER YA ERA HORA!!!!

3 (edited by analog 2010-09-19 19:07:28)

Re: actual tile dimensions?

Acutally, that's a bug in the teeworlds engine. If you read the whole topic you mentioned, you would see this link to fix it.
http://landil.posterous.com/forum-gossi … fixexe-ii. Have fun making tilesets? By the way, I'm nuby.

Edit: Whhen i made a tileset, I didn't use borderfix, only dilate.