Game Link:: How To Play
Game Link:: How To Play
https://scratch.mit.edu/projects/322695165/
How to play:
Press the right arrow key to move forward
Press the left arrow key to move backward
Press the spacebar to jump
Complex techniques:
Added acceleration functionality by creating a speed variable,
incrementing the speed variable every time the right arrow key
is pressed and then changing the x position of the scooter by
the magnitude of speed.
Added jump functionality using repeat loop, the y position is
incremented repeatedly (50 times) and then decremented
repeatedly (50 times) which enables the scooter to jump.
Added obstacle functionality, when the scooter touches an
obstacle the level is restarted.
Designed multiple levels (5), the level of difficulty is gradually
uplifted from level 1 to level 5.
Added flag functionality, when the scooter touches the flag
next level is loaded and the level count is incremented.
The speed of the user is set to 0 every time the user reaches a
new level.
If the scooter goes below a certain height (-148) then the user’s
y position is shifted back to the ground level.
Added start game function also the user is alerted when the
game is completed.
Added a boss level (level 5) where the boss is killed only if the
user reaches a certain speed limit (18m/s).
Used a forever loop and operators to check that which sprites
have to be displayed on the current level. (The boss sprite is to
be displayed only on the 5th level)
Screenshots of my code: