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
- Open a terminal in your downloads folder/the location or path you downloaded my files .
- Install dependencies:
npm install
- 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 canvasstyle.css
— minimal stylinggame.js
— game logicpackage.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