Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

hbkpuertorico

Need Help with various things!!!

This topic is 5159 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello Everybody. I need help with the following things in OpenGL If anybody know of any page or tutorial i will appreciate 1. How can I create a selection menu? (1p, 2p, options, cred) 2. How can I connect to different apps? For example from an intro screen the go to menu, when the player selects go to the game etc. 3. How can I add Music not using Direct Audio? 4. When you run any OpenGL App the background screen is black, can I change the color or add texture? Sorry If Im askig alot, but I kindda new and need to finish a project for the end of the month.

Share this post


Link to post
Share on other sites
Advertisement
1. How can I create a selection menu? (1p, 2p, options, cred)

yes, just as you would any other systm, either use bounding boxes, colision detection ect.


2. How can I connect to different apps? For example from an intro screen the go to menu, when the player selects go to the game etc.

with a .bat file?

3. How can I add Music not using Direct Audio?

openAL? FMOD? BASS?

4. When you run any OpenGL App the background screen is black, can I change the color or add texture?

glClearColor(r,g,b,i)? have a textured quad at the end of your fustrum billboarded to the camera?

Share this post


Link to post
Share on other sites
You need to read about states.

Basically, what happens is that you have a master application controlling everything else. Each component of your game (title screen, rendering engine, physics, input, etc.) should be a class, and the master application should run all of them.

This master application should have two lists: one for paused states, and one for running states. Then swap stuff around.

For example, if the state is GAME_RUNNING, the paused states would be: title screen and credits. The running states would be: rendering, physics, input and sound.

Then, if the player hits escape, a message is sent to the master application to pause physics and rendering, and to make menu run.

See how that works?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!