Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 25, 2013 12:04 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How do you use Tiled?
PostPosted: Sun Aug 17, 2008 8:29 pm 
Offline
Oldbie

Joined: Tue Jun 17, 2008 5:11 pm
Posts: 336
I figured someone should start a topic...

So in my last game I created a tile map with two layers. The first was the level and contained metadata about solid objects. The second contained metadata about the tanks.

In the game I only rendered the first layer. This meant that I created invisible objects to act as walls and placed them over the background in the appropriate place. The second layer was never rendered, I simply pulled the metadata and created tanks which rendered themselves.

This all worked for the tank game but I'm curious what other people are doing? For instance, I see you can pull a tile's image from Tiled. So perhaps I could have made each tile in the background layer an object and passed it its sprite... are people doing this?

I'm curious to hear about other approaches!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 6:52 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1315
Location: Italy
hi!
For my game i follow your idea :D i think that is simplest approach to the problem


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group