"Forrest Quest" (temporary name) is a challenging 2D platformer that I gave myself a week to build using vanilla JavaScript, HTML, and CSS. The player model was a downloaded asset, but everything else was created by me (as you can probably tell).
The game consists of 6 difficult sections that include moving spiders that kill on touch, a projectile-shooting enemy (ran out of time to make a sprite for, so it’s just a brown square), wooden spikes, and giant logs.
For player mechanics, I made walk, run, jump, double jump, dash, and fastfall.
- HTML canvas
- CSS
- JavaScript
- Moving spiders that kill on contact
- A projectile enemy that shoots at the player
- Wooden spikes and logs as hazards
- Player mechanics include:
- Walk and run
- Jump and double jump
- Dash
- Fastfall
This was built as a personal challenge to see what I could get done in a week using just vanilla JS. I focused mainly on getting the physics and controls to feel responsive, then built out some simple but difficult levels to test them.
If I revisit this project, I’d like to:
- Add proper sprites for enemies and projectiles
- Create background layers for parallax scrolling
- Add a main menu, sound effects, and a win screen
- Clone the repository:
git clone https://github.com/yourusername/javascript-platformer.git cd javascript-platformer