Toggle navigation
Mr. Code's Wild Ride
Mr. Code's
Curriculum
Showcase
Challenges
Python
Games
Sign in
Video Game
Example
Template:
Click this link, fork, and invite mrcodeswildride:
new project
Hints
For using the keyboard to do something in the game, watch the
keyboard events
video.
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
Username