Skip to content

You play as a square that must avoid other falling shapes to survive! How many shapes can you survive?

Notifications You must be signed in to change notification settings

RealAbdurRehman/shape-escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shape Escape Game

Overview

Shape Escape is a browser-based game where you control a square that must avoid falling shapes to survive. The objective is to survive for as long as possible while avoiding obstacles. The game uses simple keyboard controls and provides a score based on how long you survive and how many shapes you manage to escape.

Features

  • Playable character (square) that you control.
  • Falling shapes (enemies) that the player must avoid.
  • Keyboard controls for movement (W to jump, A and D to move left and right).
  • Dynamic scoring system.
  • Game over screen with options to restart.

Controls

  • W: Jump
  • A: Move Left
  • D: Move Right

How to Play

  1. When the game starts, click on the Start Game button.
  2. Use the W, A, and D keys to move the square.
  3. Avoid falling shapes (enemies).
  4. Your score will increase over time.
  5. If a shape collides with the square, the game is over. You can restart the game from the Game Over screen.

Technologies Used

  • HTML: Structure and layout of the game.
  • CSS: Styling (Tailwind CSS and custom styles).
  • JavaScript: Game logic, animation, and interactions.
  • Audio: Background music and sound effects.

Game Flow

  1. The game starts with a start screen and a Start Game button.
  2. When clicked, the game initializes, and the player controls a square using the keyboard.
  3. Falling shapes are spawned at random intervals and move down the screen.
  4. The player's score increases over time and as shapes are avoided.
  5. The game ends when the player collides with a falling shape.
  6. After the game ends, the Game Over screen is shown with the option to restart.

Screenshots

Gameplay

Demo


How many shapes can you escape?

Releases

No releases published

Packages

No packages published