Irrlicht and GUI libs?

Started by
0 comments, last by wqking 11 years, 4 months ago

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!

Advertisement

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.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

This topic is closed to new replies.

Advertisement