Skip to content

This is a tiny vanilla JavaScript game where you move a player left and right to dodge falling blocks. It's intentionally minimal so you can extend it. Made in whiff ,P.S. -- Dont Judge I made it cz i got bored

License

Notifications You must be signed in to change notification settings

Techyhub-stack/web-game

Repository files navigation

Dodge Blocks — small web game

This is a tiny vanilla JavaScript game where you move a player left and right to dodge falling blocks. It's intentionally minimal so you can extend it.

How to run

  1. Open a terminal in your downloads folder/the location or path you downloaded my files .
  2. Install dependencies: npm install
  3. Start the dev server: npm run start

If live-server isn't available globally, the included devDependency will be used.

Files

  • index.html — game UI and canvas
  • style.css — minimal styling
  • game.js — game logic
  • package.json — scripts and dev deps

Next steps (ideas)

  • Add touch support and mobile UI
  • Persist high scores with localStorage
  • Add sound effects
  • Add levels and power-ups

About

This is a tiny vanilla JavaScript game where you move a player left and right to dodge falling blocks. It's intentionally minimal so you can extend it. Made in whiff ,P.S. -- Dont Judge I made it cz i got bored

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published