Jump to content
  • entries
    59
  • comments
    74
  • views
    44461

Working on the menu

Sign in to follow this  
yckx

303 views

I've spent a good bit of time today working on the menu system. It now supports multiple menus, and actions bound to the menu items. The game now sports main, multiplayer, high score, options, and quit confirmation menus. Each one is on a different face of the cube, and as the player navigates the menus, the cube rotates to keep the proper menu on-screen and correctly-oriented to the camera. It almost works like I want it to.

When the command is given to switch menus, the camera's up vector is updated to that of the menu (each menu is aligned to a cube face, and each face has a different up vector). Then the cube rotates to center the active item on the new active menu to the view. This results in an abrupt twist before a smooth rotation for most menu changes. I think I may switch to quaternions for this rotation so I can slerp it. I've seen numerous posts in the fora cautioning people that the use of quats isn't the magical mystery cure, and that they probably shouldn't be used without being able to concretely state the benefits gained.

Well, I hope to use them so I can slerp from one orientation to the next. Once I get it working like I want it to, maybe I'll figure out how to take some video of it and post it on YouTube.

Edit: I was doing some Googling before going to bed, and found an old forum thread about matrix interpolation in which jyk mentioned that one could convert the matrices to an axis/angle rotation and then interpolate that. Not sure which method I should prefer.
Sign in to follow this  


2 Comments


Recommended Comments

I originally saw your screen shot in the game contest post. I just want to say that I love the idea. I love the use of the cube and the idea the player can go on any of the sides, and the cube rotates (That's how I picture it working, anyway). I'm interested to see it finished.

Share this comment


Link to comment
Quote:
Original post by AverageMidget
I originally saw your screen shot in the game contest post. I just want to say that I love the idea. I love the use of the cube and the idea the player can go on any of the sides, and the cube rotates (That's how I picture it working, anyway). I'm interested to see it finished.

Thank you! The cube does in fact rotate to keep the player centered. Or, it will soon. Now that the menu is in a workable (but still imperfect) state, I've begun working on gameplay. Expect more soon.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!