Skip to main content
GameDev.net gamedev.net
🔒 Locked

Irrlicht and GUI libs?

Started by MARS_999 Dec 28, 2012 at 1:34 AM 0 replies 1.9k views
Original Post
MARS_999
MARS_999

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?

Thanks!

wqking
wqking

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.