Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 7:58 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Aug 13, 2009 6:44 am 
Offline
Regular

Joined: Sun Oct 05, 2008 9:24 pm
Posts: 173
I can't get app.setTitle("string"); working in StateBasedGame. Seems to work fine in BasicGames. Anyone else have a problem with this?

I tried it with latest slick/lwjgl and older version I had.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 13, 2009 3:25 pm 
Offline
Regular
User avatar

Joined: Thu May 07, 2009 5:09 pm
Posts: 143
Location: Okanagan, BC, Canadia
You should be calling super("Whatever the title is here")

Code:
public class GenericGame extends StateBasedGame {

   public static final int MAINMENUSTATE = 0;
   public static final int GAMEPLAYSTATE = 1;

   public GenericGame() {
      super("Generic 2D Platformer"); // this is the title
   }
...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 13, 2009 8:08 pm 
Offline
Regular

Joined: Sun Oct 05, 2008 9:24 pm
Posts: 173
doh! sorry

that does work. :)


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