A platformer is a game in which a character moves around to avoid obstacles and jump onto suspended platforms.
Click anywhere in the blue area, and use the left and right arrow keys to move the character around:
Click anywhere in the blue area and use the up-arrow key to make the character jump.
The above code can be extended to add more platforms, bonuses, levels, and to check for more types of collisions.
View all Courses