Skip to content

SigmundTao/2D-javascript-platformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

2D JavaScript Platformer

Try the game here:

Forrest Quest


Description

"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.


Technologies Used

  • HTML canvas
  • CSS
  • JavaScript

Features

  • 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

Development Notes

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

Screenshots

2025-11-11_12-32_1 2025-11-11_12-32

How to Run Locally

  1. Clone the repository:
    git clone https://github.com/yourusername/javascript-platformer.git
    cd javascript-platformer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors