Tiles, linux and SDL

Hi,
anyone can give me an url where I can download a program that divide an
image in tiles information under linux?
bye

Why do you want to do that?

(Games usually blit directly from a “tile palette” surface, or chop
the graphics up into separate surfaces at load time.)

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Thursday 02 October 2003 00.43, NighTiger wrote:

Hi,
anyone can give me an url where I can download a program that
divide an image in tiles information under linux?

I use a shell script in linux to chop up my map images…
I’ve got a Zaurus, so JMap
[http://www.killefiz.de/zaurus/showdetail.php?app=802] is very handy for when I
go walking :slight_smile:

Anyhow, the link to the script is;
http://www.mcgods.de/download/z/maptozaurus.convert
It’s got the basics in there, you’ll have to crop out the sections for building
the .ipk file, but it’s all there.

Hope it helps,
John

NighTiger wrote:> Hi,

anyone can give me an url where I can download a program that divide an
image in tiles information under linux?
bye


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

David Olofson wrote:

Hi,
anyone can give me an url where I can download a program that
divide an image in tiles information under linux?

I have a Python script that does that. It requires Python and PyGame, and
it needs to be modified if you don’t want to use the hardcoded paths and
filenames. It’s also fairly trivial; you could probably write your own
without too much effort. If you want it I can upload it or mail to to you
directly.

(Games usually blit directly from a “tile palette” surface, or chop
the graphics up into separate surfaces at load time.)

Personally I disapprove of this practice. Tile caching is (more) useful at
the single tile level of granularity, and the cost of storing and loading
tiles as individual images is insignificant if the tile files are combined
in a single zip archive.

Another reason for cutting up an image into tiles is to remove duplicate
tiles from a screenshot where the original tiles where lost or never
existed. My Python script does not remove duplicates.> On Thursday 02 October 2003 00.43, NighTiger wrote:


Rainer Deyke - rainerd at eldwood.com - http://eldwood.com