Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 8:59 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Aug 29, 2009 9:59 am 
Offline

Joined: Tue Jul 21, 2009 8:56 am
Posts: 7
today i wanted to test and try render a whole map layer instead of just a portion of it. just to compare speed differences and i noticed, slick render methods for tiled maps doesn't allow this.
currently if you want to render a map layer, you must use the other methods that are more specific and complex..
i thought it might be a good idea to have another simple method like:
render(int x, int y, int layer)
its more beginner friendly and all..
what do you think ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 30, 2009 1:15 am 
Offline
Regular
User avatar

Joined: Thu May 07, 2009 5:09 pm
Posts: 143
Location: Okanagan, BC, Canadia
"Beginner friendly" might assume that the person using the Tiled map editor is a beginner, as well.

In that case, the basic render method
Code:
render(int x, int y)

might just suffice.

I understand what you're asking for, though. If you're really looking to test the performance quickly and don't know how to render like you suggested, this will do the same:
Code:
render(x, y, 0, 0, map.getWidth(), map.getHeight(), layer, false);


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 15, 2009 7:42 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
In SVN.

Kev


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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