Sign in to follow this  

Irrlicht and GUI libs?

Recommended Posts

I am trying out Irrlicht and was wondering if anyone has a tutorial on making a simple game GUI. e.g. Main menu layout and buttons, which the user clicks Start Game, Options, Credits, Quit ect... and then after clicking them the old menu is not rendered anymore and the new one is, and if user clicks back the old one is rendered again...


Or maybe someone has a Lib that is already coded all this up?



Share this post

Link to post
Share on other sites

Your question is not Irrlicht specified, but some general UI code design question.


I don't know if there is any tutorial, but I myself often use the concept of "scene".


A scene is a virtual concept that you draw on. A scene is an object, it renders any stuff that should display on the scene, and never cares how other scenes work.

So in your question, you may have a main menu scene, an options menu scene, a credits scene, a game scene (the game scene is so complicated that you may want to split it to loading scene, game play scene, etc).


In your main menu scene, the scene only renders all the buttons you mentioned above, of course beside the background. In credits scene, the scene may animate your credits names.


When "credits" button is clicked on main menu scene, the scene is swtiched to credit scene. That's to say, your whole game is just switching between scenes.


Just some basic beginning ideas.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this