View Full Version : Clicking through the new game screen...
Chris Burkhardt
2002.05.03, 03:27 PM
If it is ok with everybody else, I would like to be able to click through the "new game" screen. As it is now, the screen telling the story of Hooptie is displayed for 2 seconds every time you start a new game. The problem is that if you want to read the story, 2 seconds is not nearly long enough... and if you know the story and just want to play, 2 seconds can be too long. So the solution, as it seems to me, is to allow the user to click the mouse when they are done with the screen so they can start playing.
Now, being the great Cocoa newbie that I am, I don't know how to test whether or not the mouse button is down... is there a Cocoa method equivilent to the Classic/Carbon button() function? Or would I have to add (override) the -(void)mouseDown:(NSEvent *)event; method to GameView in order to recieve mouse clicks?
Thanks,
<>< Chris ><>
DaFalcon
2002.05.03, 03:41 PM
That is a change that I would like to see too :-) Same with the Game Over screen, I think (and possibly have the screen display before the "you got a high score!" sheet, simliar to Ambrosia's treatment in Aperion).
Pazolli
2002.05.03, 10:20 PM
Originally posted by Chris Burkhardt
If it is ok with everybody else, I would like to be able to click through the "new game" screen. As it is now, the screen telling the story of Hooptie is displayed for 2 seconds every time you start a new game. The problem is that if you want to read the story, 2 seconds is not nearly long enough... and if you know the story and just want to play, 2 seconds can be too long. So the solution, as it seems to me, is to allow the user to click the mouse when they are done with the screen so they can start playing.
I like the idea of being able to click through the story screen.
Now, being the great Cocoa newbie that I am, I don't know how to test whether or not the mouse button is down... is there a Cocoa method equivilent to the Classic/Carbon button() function? Or would I have to add (override) the -(void)mouseDown:(NSEvent *)event; method to GameView in order to recieve mouse clicks?
No as far as I'm aware there is no Cocoa equivalent for the Button() method in Carbon. I think the elimination Button() method is meant to encourage more multitasking-friendly programming practices. As a result you'll need to add a "mouseDown:" method to the GameView object as you suggested. You can then call "[gameController gameState]" to work out what action to take when the user clicks.
Don't forget to commit your work to the CVS once you're done.
Cheers,
Mark
Pazolli
2002.05.08, 11:04 AM
BTW if there are any other questions you've got, just ask.
We're here to help. :)
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.