Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualwebwraith

Posted 03 February 2013 - 01:23 PM

Just as a quick question, when you talk about splash screens, do you mean those that come up as a program is loading ( see everything from the latest games to MS Office for examples of this, although my personal favourite are the Adobe ones. ), or do you mean a Title screen, such as that would likely say "Press start to continue"? For the first, I'd use a simple native window which just loads and displays an image and/or some text. This shouldn't be too hard, and you can probably find some decent code for this with a quick Google search. For the title screen, then you should probably treat it like any other "screen" in your game, and use the GLUT methods for reading from the keyboard. If you're having troubles with this part, then let us know. I don't really have a great deal of experience with GLUT myself, but I'm sure someone can give you a hand

 

Well, that will teach me to read a post properly. I'm not sure why the code isn't working, unless it has to do with you setting button to 0, then checking if it is equal to 32 (I'm assuming you have GLUT code in there to retrieve the key values, but obviously I'm not sure). Other than that, I haven't seen anything in the documentation to suggest that you need to do things differently to how you already are. Unfortunately, that's about as far as my usefulness extends. Best of luck in finding the solution to this problem, and I hope you'll leave a post detailing how you did it if you do.


#1webwraith

Posted 03 February 2013 - 01:03 PM

Just as a quick question, when you talk about splash screens, do you mean those that come up as a program is loading ( see everything from the latest games to MS Office for examples of this, although my personal favourite are the Adobe ones. ), or do you mean a Title screen, such as that would likely say "Press start to continue"?

 

For the first, I'd use a simple native window which just loads and displays an image and/or some text. This shouldn't be too hard, and you can probably find some decent code for this with a quick Google search.

 

For the title screen, then you should probably treat it like any other "screen" in your game, and use the GLUT methods for reading from the keyboard. If you're having troubles with this part, then let us know. I don't really have a great deal of experience with GLUT myself, but I'm sure someone can give you a hand


PARTNERS