Please enable JavaScript.
Coggle requires JavaScript to display documents.
Version 5 of Reaction Game (GUI (Background image, Start game button,…
Version 5 of Reaction Game
GUI
Background image
Start game button
Score
Timer
Asks user for screen size
Start game button
FUNCTION
If white ball is clicked remove a point
If red ball is clicked + 1 score and change random white ball to red
Ball changing from white to red every 10 seconds
Clear GUI
Start game
Spawn balls
Set Score to 0
Start timer
End game
Clear GUI
Display score
BALLS
Velocity
Check for boundry
Display ball
Move ball
Amount of balls
Red balls
LEVELS
Easy
Ball speed = average
Ball number = average
Hard
Ball speed = High
Number balls = high
TIMER
Counting down from 10
Resets when red ball is clicked or missed
START GAME BUTTON
Once clicked starts the game
Load GUI
Load score
Loads the level
Loads the balls
MOUSE
If clicked on red ball
add point to score
remove ball
change random white ball to red
reset timer
If clicked on white ball
remove a point
If clicked on background
remove a point
VARIABLES
Level
Balls
Ball colour
BallVelX
BallVelY
BallVel
Timer
Score