A simple browser-based game built with HTML5 Canvas and vanilla JavaScript. Move your blue square around the screen to dodge the falling red blocks for as long as you can.
- Open
index.htmlin any modern web browser. - Press Space to start the game.
- Use the Arrow Keys to move your player.
- Avoid the red blocks falling from the top of the screen.
- Each block that passes off the bottom adds +1 to your score.
- If a red block touches you, it's Game Over.
- Press R to restart at any time.
| Key | Action |
|---|---|
| Space | Start the game |
| Arrow Keys | Move the player |
| R | Restart |
- Increasing difficulty: enemies speed up as your score grows.
- Score tracking displayed in the top-left corner.
- Restartable without reloading the page.
Demo Game/
├── index.html # Canvas and page layout
├── index.js # Game logic (player, enemies, collision, scoring)
└── README.md
No build tools or dependencies required — just a web browser.