android
Prev Previous Post   Next Post Next
  #1  
Old 08-13-2010, 04:58 PM
delirius delirius is offline
Member
 
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 <http://www.mapeditor.org/> which i am using to create maps. Java version of editor can export to Lua! Image for tiles are from TilEd and <http://reinerstileset.4players.de/> (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 TilEdDemoOrtho.zip (44.3 KB, 149 views)
File Type: zip TilEdDemoIso.zip (167.9 KB, 194 views)
File Type: zip TilEd_example_usage.zip (622 Bytes, 116 views)

Last edited by delirius; 08-16-2010 at 04: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 01:08 AM.