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.
- 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.
- W: Jump
- A: Move Left
- D: Move Right
- When the game starts, click on the Start Game button.
- Use the W, A, and D keys to move the square.
- Avoid falling shapes (enemies).
- Your score will increase over time.
- If a shape collides with the square, the game is over. You can restart the game from the Game Over screen.
- 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.
- The game starts with a start screen and a Start Game button.
- When clicked, the game initializes, and the player controls a square using the keyboard.
- Falling shapes are spawned at random intervals and move down the screen.
- The player's score increases over time and as shapes are avoided.
- The game ends when the player collides with a falling shape.
- After the game ends, the Game Over screen is shown with the option to restart.