Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Menu Logic

Author
Message
Inverted
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 24th Mar 2007 02:21 Edited at: 24th Mar 2007 03:10
Hello everyone, i am going to start writing my first big game.
But i need some pointers.
What would be the best way to go about writing it with menu and game. would it be in two loops or just one. Please tell me which one is better.

A) In two loops switching back and forth


B) In one single loop


I have a bad habit for hard coding everything versus finding shortcuts. So can anyone with DBP knowledge show me how to go about cutting between a menu to a game, if it involves different DBA's w/e. But i'd just like to know how the pros do it.

Thanks,
-inverted

[http://www.inverted-entertainment.com/][/url]
Come take a look!
Inverted
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 24th Mar 2007 05:32
Can anyone help me?


Lawl
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 24th Mar 2007 06:50
If the game is in 3d, mixing 2d and 3d can cause major slowdowns in your game if its a fast paced action game.

I use a 3d panel thats always facing the screen with a texture of the text.
this makes everything in the game including menus, 3d
It stops heaps of print or text commands each loop as the texture is already printed and only needs to show the texture on screen.

it allows you to gain access to all the elements of 3d in regards to ghosting your objects or fading them or sliding them off.

It allows you to create the mouse over events without having to create more graphics for each mouse event via simply using 3d effects like scaling etc..

It allows you have the menu right over the actual game while its running.
each 3d panel can also be managed just like its a 3d object with a type.

you dont have any sprite overheads with regards to coding them or having load any of those sprite Libs into your final game.

3d panels dont have to be stuck to the screen and can be used for in game panels as well, eg over npc heads or floating up saying how much gold you have etc..



Its your requirement to give us more information regarding your game to make a better estimate as to what you require.



example: I want menus in my game, tell me the best wayzors.

see how we cant see if its 2d or 3d or if the menus are for something special in the game.


be verbose, we cant mind read you, or can we ?

Inverted
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 24th Mar 2007 15:27
Thanks indi,
my game is 3d so i suppose that having the menu over the top of an unstarted game would be the best.

thanks,
-inverted


Lawl

Login to post a reply

Server time is: 2024-09-25 19:15:36
Your offset time is: 2024-09-25 19:15:36