Toggle navigation
Mr. Code's Wild Ride
Mr. Code
Curriculum
Showcase
Python
Math
Games
Typing
Sign in
Video Game
Level 5
Video Game
Template:
Look at the
example
. Click this link, fork, and add your username to the project name:
new project
Hints
For using the keyboard to do something in the game, refer to the
keyboard events
page.
For getting an element's position and size, use
offsetLeft
,
offsetTop
,
offsetWidth
, and
offsetHeight
.
For detecting if two things in the game are touching, refer to the
collision detection
page.
Last section
Next section
×
Sign in