Race to the Krusty Krab
A Simple 2-Player Racing 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
- HTML
- CSS
- Animate.css
- Vanilla JavaScript
- DOM Manipulation
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