Ok so I am in the middle of creating a simple game (I fancy doing something productive so am trying our processing).
I currently have it so that if a Bee touches a bomb it is Game Over.
To create the game over I have used the following technique:
I currently have it so that if a Bee touches a bomb it is Game Over.
To create the game over I have used the following technique:
__________________________________________
Thanks in advance!!
int gameScreen
void draw() {
gameScreen = 1
gameScreen = 1
if(gameScreen = 1)
*Code for playing game*
if(*Bee touches bomb*) (gameScreen = 2)
if(gameScreen = 2)
endLoop();
if(gameScreen = 2)
endLoop();
*Display black screen and Game Over*
___________________________________________
My first question is how do I counteract "endLoop();" so that when the game over screen is displayed and the loop has ended, clicking the mouse would take me back and restart the game?
My second question is once I have all of this in place how can I have it so that whilst the game is being played it times for how long the bee survives then once the game over screen appears it displays how long your survived for?
Thanks in advance!!
1