Skip to content
nehashirodkarPublic

About

Dodge the Blocks: a minimalist 2D arcade game made with plain HTML, CSS, and JavaScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Dodge the Blocks

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.

How to Play

  1. Open index.html in any modern web browser.
  2. Press Space to start the game.
  3. Use the Arrow Keys to move your player.
  4. Avoid the red blocks falling from the top of the screen.
  5. Each block that passes off the bottom adds +1 to your score.
  6. If a red block touches you, it's Game Over.
  7. Press R to restart at any time.

Controls

Key Action
Space Start the game
Arrow Keys Move the player
R Restart

Features

  • Increasing difficulty: enemies speed up as your score grows.
  • Score tracking displayed in the top-left corner.
  • Restartable without reloading the page.

Project Structure

Demo Game/
├── index.html   # Canvas and page layout
├── index.js     # Game logic (player, enemies, collision, scoring)
└── README.md

Requirements

No build tools or dependencies required — just a web browser.

About

Dodge the Blocks: a minimalist 2D arcade game made with plain HTML, CSS, and JavaScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages