Please enable JavaScript.
Coggle requires JavaScript to display documents.
Version 3 of Meteor Dodge (Events (IF lives = 0 (Stop Game, Display “Game…
Version 3 of Meteor Dodge
Objects
Planet
Diameter
Colour
Move Speed: Left/Right/Up/Down
Meteors
Diameter
Colour
Move Speed: from right to left
GUI
Main Menu
Instructions
Click to start
Game Active
Levels
Lives
Events
IF lives = 0
Stop Game
Display “Game is over” + “You reached Level “ + levelNum
Go to Menu GUI
IF all meteors hits left side of canvas
Go to next level
Gain 1 life back
IF meteor hits planet
Remove 1 life
Delete meteor
If meteor hits left side of canvas
Delete meteor
Functions
Levels
Number of meteors = 10
Every new level
Lives = 3
Add 5 meteors
Move Planet
Right arrow key pressed
Move Right
Up arrow key pressed
Move Up
Left arrow key pressed
Move Left
Down arrow key pressed
Move Down
Move Meteors
IF level started
Draw the meteors off the canvas on right
Move meteors to the left with random velocities
Setup
Create Canvas
Create Planet Class
Create Meteor Class