android
  #1  
Old 08-13-2010, 04:58 PM
delirius delirius is offline
Member
 
Join Date: Feb 2010
Posts: 131
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, 417 views)
File Type: jpg orthogonal.jpg (32.3 KB, 332 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]

  #2  
Old 08-15-2010, 06:43 AM
Redwolfhome's Avatar
Redwolfhome Redwolfhome is offline
Junior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 91
Default

Wow,
Thats realy nice
Reply With Quote

  #3  
Old 08-15-2010, 04:05 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,080
Default

My only question is, how do you implement it in other apps? If for example I was to use it for rendering the map in my RPG, how would I go about that? (I'm just asking to know in case I make another game which needs it, right now I have solved the map rendering myself)
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #4  
Old 08-16-2010, 11:57 AM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

this is very nice i might be able to use it in one of my current projects
Reply With Quote

  #5  
Old 08-16-2010, 04:43 PM
delirius delirius is offline
Member
 
Join Date: Feb 2010
Posts: 131
Default

added simple and commented example of usage.

Last edited by delirius; 06-17-2011 at 03:23 AM.
Reply With Quote

  #6  
Old 09-04-2010, 09:10 AM
İreative's Avatar
İreative İreative is offline
Junior Member
 
Join Date: Jun 2010
Location: Minnesota, USA
Posts: 39
Default

I already have most of the map rendering figured out in my game (Colonization), but I was wondering if I could borrow the pathfinding from you. My game is in Isometric view. Just post here or PM me. Thanks!
Reply With Quote

  #7  
Old 09-09-2010, 07:31 AM
delirius delirius is offline
Member
 
Join Date: Feb 2010
Posts: 131
Default

Quote:
Originally Posted by İreative View Post
I already have most of the map rendering figured out in my game (Colonization), but I was wondering if I could borrow the pathfinding from you. My game is in Isometric view. Just post here or PM me. Thanks!
Of course you can. my source for algorithm was http://www.policyalmanac.org/games/aStarTutorial.htm
Reply With Quote

  #8  
Old 09-09-2010, 09:40 PM
İreative's Avatar
İreative İreative is offline
Junior Member
 
Join Date: Jun 2010
Location: Minnesota, USA
Posts: 39
Default

Thanks!
Reply With Quote

  #9  
Old 09-18-2010, 02:59 PM
datallboy's Avatar
datallboy datallboy is offline
Member
 
Join Date: Feb 2010
Posts: 143
Default

when is the full game going to be released?
__________________
I wUz he3R
Reply With Quote

  #10  
Old 09-18-2010, 04:07 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,080
Default

This isn't a game, it's a library you can use to make a game.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

Reply

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 09:58 AM.