GLBasic forum

Main forum => GLBasic - en => Topic started by: petermills on 2008-Oct-13

Title: Game Menu
Post by: petermills on 2008-Oct-13
Hi,

I've started playing around with the demo version and have been able to make a splash screen disapear after a few seconds.

What I'm wanting to do is to create a game menu (e.g. start game, high scores, exit game) and display it after the splash screen disappears. At the moment I just have it loading another bmp file.

Can someone please point me in the right direction on how to do this. An example would be greatly appreciated.

Thanks
Peter
Title: Re: Game Menu
Post by: Hemlos on 2008-Oct-13
Setup MOUSESTATE first..

make some graphics for window and buttons, use BOXCOLL() to detect the collision with mouse

More sophisticated:
Theres also a working sample, DD_gui i think its called.
Title: Re: Game Menu
Post by: Kitty Hello on 2008-Oct-13
there is alos a pre-built menu addon, that in in the common folder of your samples. It's a menu that can work with ini files, and also configure your comtrols (key/joystick/mouse).
Very convenient. You can change the looks with a callback function.
Title: Re: Game Menu
Post by: petermills on 2008-Oct-14
Thanks guys. I'll have a look at your suggestions.