Race to the Krusty Krab

A Simple 2-Player Racing Game

View Source Code Play Game

Description

In this project, I used plain vanilla JavaScript and DOM manipulation to allow the user interact with elements in the game. This 2-player racing game allows two people to use the 'WASD' and arrow keys to navigate the patty wagons around the enemy boat mobiles.

Technologies Used

Challenges

I implemented .getBoundingClientRect() to check for collisions. It was tricky figuring out the conditions for each side of the patty wagon and determining how these would trigger the game to end for that player.

Preview
home page of racing game select difficult screen game page game over page
Go Back