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:
__________________________________________
int gameScreen
void draw() {
gameScreen = 1
if(gameScreen = 1)
*Code for playing game*
if(*Bee touches bomb*) (gameScreen = 2)
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?
Quick question.
I have my program set so that three squares are floating around the screen.
How easy would it be to swap those squares out for an image of say a Balloon?
If this is possible how would I go about doing it?
Edit: I should have mentioned the "squares" have been made simply through rect(*,*,*,*);
Hi there,
I'm relatively new to processing.
It was recommended to me by a friend as something fun to get involved with so I thought I would give it a shot.
I'm currently in the process of making my first ever game.
It's a very simple "Collect the objects" game using your cursor to pick up floating around balls game and is coming along nicely.
My problem is I want it to come up with some kind of game over screen if a certain object is touched by the cursor but am completely lost at how I would achieve this. Can anyone help?
Additionally in the future I would like to also add a Starting screen with the option of Instructions as well as perhaps a timer that times how long your game session runs for followed by giving you that time at the Game Over screen.
I would appreciate some help on all of these however the Game Over screen is my main priority right now.