Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 25, 2013 2:11 am

All times are UTC




Post new topic Reply to topic  [ 59 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
PostPosted: Sat Jan 28, 2012 6:24 pm 
Offline

Joined: Sun Jul 10, 2011 8:27 am
Posts: 25
liamzebedee wrote:
It will surely be included in the next nightly build of Slick.


I just downloaded the nightly build from the 28th, but can't see TiledMapPlus in the tiled package. Am I looking in the wrong place, or is it not yet committed to the trunk? Looking forward to getting my hands on it!

_________________
Deejay
BinaryTweed.com - New games that are like old games, but better
IndieCity.com - Playing a different game


Top
 Profile  
 
PostPosted: Sun Jan 29, 2012 4:13 am 
Offline

Joined: Sun Jan 29, 2012 3:59 am
Posts: 2
Hi, I wanted to thank you ! I'm currently making a little game and I want to use Tiled Maps. Your work will surely help me out !

@BinaryTweedDeej: I also downloaded this nightly build, and can't see where TiledMapPlus is. I think it's not updated yet. I also tried this lib but couldn't use it as my game plays ogg files, and I don't know why but I got an error about it with this lib. So I built myself a fresh slick lib with some modified files. Anyway ! Here's the lib I built. It has TiledMapPlus for sure.


Top
 Profile  
 
PostPosted: Sun Jan 29, 2012 7:19 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
The dev team and I are currently still organizing all these automated nightly builds etc. It will take some time, but it will become part of Slick core soon.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


Top
 Profile  
 
PostPosted: Wed Feb 01, 2012 9:58 pm 
Offline

Joined: Fri Jan 06, 2012 2:15 am
Posts: 44
Some constructive feedback:

-Somewhere in the thread it says not to call TileMap's render methods. If that's not allowed when using Plus, they should be overridden in TileMapPlus (even if they aren't applicable anymore, in which case they should throw exceptions with a message saying not to call these). If the method signatures are the same, the new methods which override the old should also have @Override annotations.

-Ideally we should be re-using constructor and overloaded method code rather than copy-pasting. Ex:
This
Code:
   public TiledMapPlus(String ref) throws SlickException {
      super(ref, true);
      processNameToObjectMap();
      processLayerMap();
      processTilesetMap();
   }

   public TiledMapPlus(String ref, boolean loadTileSets) throws SlickException {
      super(ref, loadTileSets);
      processNameToObjectMap();
      processLayerMap();
      processTilesetMap();
   }

works better like this
Code:
   public TiledMapPlus(String ref) throws SlickException {
      this(ref, true);
   }

   public TiledMapPlus(String ref, boolean loadTileSets) throws SlickException {
      super(ref, loadTileSets);
      processNameToObjectMap();
      processLayerMap();
      processTilesetMap();
   }

Some of the other (InputStream) constructors have the same issue, and at a glance it looks like some of the render() methods might be able to call one another. Or if not possible (method signatures vary), some refactoring to re-use duplicate code like some of the for loops appears do-able. Avoids a lot of copy paste (and future bugs!) re-using the code this way.

-Some of the parameters in the render() methods are a little vague (ex. l The index of the layer to render), would be helpful to have those made a little longer and descriptive.

-Oh, and you meant object oriented, not "orientated" twice in the javadoc. :)

Still I think this class will be a nice time saver... haven't tried using it yet but I plan on checking it out in more detail once I'm ready. Thanks for the efforts.


Top
 Profile  
 
PostPosted: Sat Feb 11, 2012 7:13 pm 
Offline
User avatar

Joined: Wed Feb 08, 2012 10:32 pm
Posts: 9
Location: Germany
I'm using this in my game! It's great!!
When will it be included in Slick?


Top
 Profile  
 
PostPosted: Fri Mar 09, 2012 4:33 pm 
Offline

Joined: Fri Mar 02, 2012 9:37 am
Posts: 4
A small feature request - it would be nice to see constructor which would take dimensions and TileSet to allow you to create an empty TiledMap with linked TileSet for random-maps generation. Currently I'm loading map and then overwriting it with my new random map. That's not the best way, but I've tried to extend TMP to make such constructor myself and got messed up :)


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 11:46 pm 
Offline

Joined: Wed Mar 14, 2012 11:38 pm
Posts: 5
Sorry to sound like a complete newbie, but is there a tutorial I could use to get this set up?

I've added the jar to my project and I've added my map (e.g. TestGrass = new TiledMapPlus("maps/TestGrass.tmx"); but I'm still getting an error message stating Slick doesn't support Isometric maps.

Sorry for the bother, just lost and trying to get some things working.

Thank you for your time.


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 9:57 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
Slick doesn't support isometric maps at the moment sorry.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 4:38 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
Well it did until you overwrote it :) My last svn build from Kev has the support for it. Dunno why you used an old as base :/

_________________
Current Projects:
Image Mr. Hat I
Image Vegan Vs. Zombies
Projects:
RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 5:09 pm 
Offline

Joined: Wed Mar 14, 2012 11:38 pm
Posts: 5
Is there anyway I could get a hold of this mystical build you speak of R.D.?


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 5:32 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
http://www.mediafire.com/?bsyak8vgjjw4jul

there you go :)

_________________
Current Projects:
Image Mr. Hat I
Image Vegan Vs. Zombies
Projects:
RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 5:45 pm 
Offline

Joined: Wed Mar 14, 2012 11:38 pm
Posts: 5
Success! Thanks a million :)


Top
 Profile  
 
PostPosted: Fri Mar 16, 2012 1:32 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
@R.D. sorry man, didn't see that. Thanks, I'll try integrate the code later.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


Top
 Profile  
 
PostPosted: Wed Mar 21, 2012 8:11 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
Just to keep everyone updated, TiledMap support is coming along extremely well. Alot of bugs have been resolved, plus I'm just finishing final support for Tiled 0.8. See this thread for all added features.

To conclude, I officially make this thread redundant, as TiledMapPlus is now part of the official Slick distribution.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 59 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: Google [Bot] 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