   Game main menu
  Hi, unfortunately i skipped past creating menus when making games.I looked up some similar questions and found one that i'd like to use myself.It was written in psuedo code.http://www.gamedev.net/community/forums/topic.asp?topic_id=50800I'd like to make my menu using a similar class, But i've never used classes before. And when i had my attempt,i made a mainMenu.h mainMenu.cpp, main.h, main.cppAnd a class function i made was like, mainMenu::draw();then inside the function i put all my directx (drawsprites) functions.and, it didnt work beacuse it couldnt find all my headerfiles.Would anyone please be able to help me with this.I'd like the menu to be keyboard controlled, up and down to move up and down the options list. and 2 sprites, one for selected and one for de-selected. A typical game menu really.Thanks.   
  Please correct me if im wrong, but, it seems like you need to learn some more C++ and the basics of DirectX. Look online for some tutorials or buy a book. Thats just judging from your post.If im wrong please elaborate and ill help you further.   ;  Hi, thanks for replying quickly. I'll give you that my knowledge of c++ isnt all that great, i skipped most parts and just began to understand the syntax, Then moved onto my graphics.I'm fairly confident with my directx, Enough to do what i need to with this menu.I'm confident enough that my knowledge of c++ is also up to 'this' standard.Thanks for being willing to reply again ^_^ i've looked through books aswell as the internet. And all that i can find is classes that use input functions such as cin >> Beginners iostream stuff. When i tried writing my own class for this, The problem came when i compiled it. I linked my mainMenu.cpp with my main.h, for the header files and information on my sprites and directx. But that didnt work (probably due to my lack of knowledge on this area) but, i assume its cause my main.cpp is linked to it.So i'm just unsure how i'm supposed to use a class function such as e.g mainMenu::draw(){directx informationnn}Thanks for the help though   ;  OK, i think im up to speed. If you are looking for help on C++ classes and object oriented programming then there are tutorials online and on youtube. A well known channel on youtube is antiRTFM. Very detailed and clear help. Once you have learned all about classes then your problem shouldn't persist, hopefully. I would take a break learning DirectX and focus on advancing in C++.You are seriously limiting yourself if you know the minimum in the language you are using along side DirectX as you will, and already have come across problems that aren't API releated but are infact limits to your knowledge in C++.Like i said take some time and learn C++. There are lots of useful resources on the web which should take you to where you should be before starting on graphics. Learn about the differences between and uses of *.cpp/*.h files and learn C++ pointers/references and OOP and you'll find that C++ releated problems fade away! As i am at work i have to limit the time i spend on 'sites like these' and can't give you the help i could normall give. By all means PM me and ill give you more help than i can give now.   ;  Thanks for the help :D I will take a good look at those, and hopfully it will work out.Thanks for the youtube link aswell, i'll take a look.;  if you are looking for a good tutorial about splitting code into multiple files (cpp) you can readhttp://www.gamedev.net/reference/articles/article1798.aspdirectly from gameDev. I learned a lot from it :)Hope can help you out.dav   ;  Thanks for the links guys :)   ;  As what i saids wordy. and i kinda do need some help with it.I'll change the question :)Is it possible to create a array of pointers?If not, any other ways of acomplishing this?Thanks :)[Edited by - ryanp321 on June 18, 2009 11:46:40 AM]