Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Game: Appstates and management


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 mistermonday   Members   -  Reputation: 103

Like
0Likes
Like

Posted 21 August 2012 - 10:38 PM

Hello Everyone,
I recently began upon programming my first serious game and I ran upon an SDL tutorial on appstates. The only issue is, I don't want to use SDL. Could anyone inform me on how to create appstates and an appstate manager? I just need it to do the basic stuff: Play an initial animation saying who the game was made by----> hand control over to the main menu------> hand control over to the game or credits --------> hand control to an in game menu.

Sponsor:

#2 Lazy Foo   Members   -  Reputation: 1105

Like
1Likes
Like

Posted 21 August 2012 - 11:56 PM

Hello Everyone,
I recently began upon programming my first serious game and I ran upon an SDL tutorial on appstates. The only issue is, I don't want to use SDL. Could anyone inform me on how to create appstates and an appstate manager? I just need it to do the basic stuff: Play an initial animation saying who the game was made by----> hand control over to the main menu------> hand control over to the game or credits --------> hand control to an in game menu.


I used the same GameState class I used for my SDL game as I did for my OpenGL iPhone app. The way I did it, there was no SDL or OpenGL code in the management of the game states, only in the implementation of the individual game states.

Learn to make games with my SDL 2 Tutorials


#3 Cygon   Crossbones+   -  Reputation: 1140

Like
1Likes
Like

Posted 22 August 2012 - 01:45 AM

It's usually referred to as a "game state manager" - that at least will yield you several results on Google. Also see the related "state pattern".

I was in a similar situation with my last game but ultimately settled on writing my own when each and every example either tightly coupled the game states to a specific engine or library, or decided to hard-code it for one purpose.

If you can use it, I have published my code together with a small article showing how to avoid common design pitfalls here: Game State Management.
Professional C++ and .NET developer trying to break into indie game development.
Follow my progress: http://blog.nuclex-games.com/ or Twitter - Topics: Ogre3D, Blender, game architecture tips & code snippets.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS