Prev Previous Post   Next Post Next
Old 08-13-2010, 03:58 PM
delirius delirius is offline
Join Date: Feb 2010
Posts: 132
Default TilEd library

I have been working some time on library for loading, rendering and interacting with tilemaps. I found wonderfull free editor TilEd <> which i am using to create maps. Java version of editor can export to Lua! Image for tiles are from TilEd and <> (great source of 2d tile images).

Some things tilemaps from TilEd can do:
  • multiple layers
  • multiple tilesets
  • attributes of tiles
  • orthogonal and isometric maps
  • nonuniform sized tiles
Library can currently:
  • load tilesets
  • generate info about walkability of tiles
  • render maps exported by editor (ortho and iso maps)
  • cull not-vissible tiles (ortho and iso maps)
  • pathfinding by A* algorithm (not used in demos but tested OK)
  • convert clicks from screen to iso map coordinates
Things to jet implement:
  • loading TilEd file format (without need of exporting it by editor)
Known bugs:
  • jumpy scrolling when renderin ortho maps (by new feature: nonuniform sized tiles)

in demos important file is Tiled.lua

1. demo shows simple one layer orthogonal map
2. demo shows multi-layered isometric map
3. example shows how to use library for basic rendering
Attached Images
File Type: jpg isometric.jpg (37.3 KB, 419 views)
File Type: jpg orthogonal.jpg (32.3 KB, 333 views)
Attached Files
File Type: zip (44.3 KB, 149 views)
File Type: zip (167.9 KB, 194 views)
File Type: zip (622 Bytes, 116 views)

Last edited by delirius; 08-16-2010 at 03:42 PM. Reason: Added example of usage
Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 10:40 PM.