The Dragon Blog

July 15, 2005

Ogtrax Menu system

Filed under: Ogtrax Game Engine

I have done some work and created a menu system. This is for the main menu at the moment but I will make it appliable to a ingame menu too. Also I have never seen a menu system in a engine before so it’s quite unique. To all you programmers out there who wonder how it works I will post the prototype functions and how to use them here:

void CreateMenu(int colR, int colG ,int ColB,int cellSizeX,int cellSizeY,int screenPosX,int screenPosY);

int CreateMenuCell(char* cellCaption,FONT cellFont);

CreateMenu(128,128,128,152,32.472,196);
CreateMenuCell(”NEW GAME”,menufont);
CreateMenuCell(”LOAD GAME”,menufont);
CreateMenuCell(”SAVE”,menufont);
CreateMenuCell(”OPTIONS”,menufont);
CreateMenuCell(”INTRO”,menufont);
CreateMenuCell(”EXIT GAME”,menufont);
CreateMenuCell(”UPDATE”,menufont);

This should all be pretty self explanatory. And to the result. This is the menu for a game in progress which I’m making alongside the Ogtrax engine.
Main Menu of Soul Beast Magnum
You can probably see that the image is resized which is why the image doesn’t fit the code above. If you double the size of the image you will see it. Link to bigger image

Comments »

The URI to TrackBack this entry is: http://ogtrax.blogsome.com/2005/07/15/ogtrax-menu-system/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>























Get free blog up and running in minutes with Blogsome | Theme designs available here