Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hotshot003/tetris-game

This project is a modern take on the classic Tetris game, built using HTML, CSS, and JavaScript. Players control falling tetromino shapes to create complete rows, which clear from the board. The game features colorful visuals, smooth animations, and engaging sound effects.
https://github.com/hotshot003/tetris-game

classic-game front-end-development game-development interactive-games puzzle-game web-development

Last synced: about 1 month ago
JSON representation

This project is a modern take on the classic Tetris game, built using HTML, CSS, and JavaScript. Players control falling tetromino shapes to create complete rows, which clear from the board. The game features colorful visuals, smooth animations, and engaging sound effects.

Awesome Lists containing this project

README

        

# Tetris Game Project

Welcome to the Tetris Game Project repository! This project implements a classic Tetris game using HTML, CSS, and JavaScript.

## Features

- **Grid-based gameplay area**: Tetris board with dynamic tetromino shapes.

- **Tetromino shapes with rotation**: Seven different tetromino shapes that can be rotated.

- **Score and level tracking**: Keep track of score based on lines cleared and level progression.

- **Game over detection**: Detect when the game ends due to stacked tetrominoes reaching the top.

- **Responsive design**: Playable on various screen sizes.

## Technologies Used

## How to Play

- **Controls**:

- Use arrow keys (left, right, down) to move tetrominoes.

- Use the Space key to rotate tetrominoes clockwise.

- Press spacebar to drop tetrominoes instantly.

- **Objective**: Complete horizontal lines by filling them with blocks to clear them and score points. Avoid stacking tetrominoes to the top of the board.

## Development Notes

- Implemented using vanilla JavaScript for game logic.

- Used CSS Flexbox/Grid for responsive layout.

- Challenges included managing tetromino movement and rotation logic.

## Future Enhancements

- Add levels with increasing difficulty.

- Implement multiplayer mode.

- Improve UI/UX with animations and sound effects.

## Live Demo

[![Live Demo](https://img.shields.io/badge/LiveDemo%20-%23276DC3.svg?&style=for-the-badge&logo=&logoColor=white)](https://hotshot003.github.io/Tetris-Game/)

## Contributing

Contributions are welcome! Fork the repository and submit a pull request with your enhancements.

ThankYou 😊