-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from Adi-456/main
TETRIS GAME added successfully...
- Loading branch information
Showing
33 changed files
with
17,818 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
|
||
# Tetris Game Readme | ||
|
||
## Description | ||
This is a classic Tetris game developed using HTML5, CSS3, and jQuery. The game is built with responsive web design (RWD) principles in mind, making it playable on various screen sizes and devices. Tetris is a popular and addictive puzzle game where the player must manipulate falling tetrominoes to create complete horizontal lines and prevent the screen from filling up. | ||
|
||
## Table of Contents | ||
- [Features](#features) | ||
- [Getting Started](#getting-started) | ||
- [How to Play](#how-to-play) | ||
- [Controls](#controls) | ||
- [Scoring](#scoring) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
## Features | ||
- Classic Tetris gameplay. | ||
- Responsive web design for playability on different devices. | ||
- Intuitive and user-friendly controls. | ||
- Score tracking to challenge yourself and others. | ||
- Hours of fun and entertainment. | ||
|
||
## Getting Started | ||
To play this Tetris game, follow these simple steps: | ||
|
||
1. Clone or download this repository to your local machine. | ||
2. Open the `index.html` file in a modern web browser (such as Chrome, Firefox, or Edge). | ||
3. The game should load, and you can start playing immediately. | ||
|
||
## How to Play | ||
The objective of Tetris is to clear lines by fitting different shaped tetrominoes together. The game will start with a random tetromino falling from the top of the screen. You can move the tetromino left or right, rotate it, and accelerate its descent as it falls. | ||
|
||
Your goal is to complete horizontal lines with no gaps. When a line is complete, it will disappear, and you will earn points. The game continues, and the tetrominoes keep falling at an increasing speed. The game ends when the screen fills up. | ||
|
||
## Controls | ||
- **Left Arrow**: Move the current tetromino left. | ||
- **Right Arrow**: Move the current tetromino right. | ||
- **Down Arrow**: Accelerate the descent of the current tetromino. | ||
- **Up Arrow or Spacebar**: Rotate the current tetromino. | ||
- **P**: Pause the game. | ||
|
||
## Scoring | ||
- **Single Line Clear**: 100 points. | ||
- **Double Line Clear**: 300 points. | ||
- **Triple Line Clear**: 500 points. | ||
- **Tetris (Four-Line Clear)**: 800 points. | ||
|
||
Try to achieve the highest score and challenge your friends! | ||
|
||
## Contributing | ||
If you would like to contribute to this project, feel free to submit issues, feature requests, or pull requests on the [GitHub repository](https://github.com/yourrepositoryname). | ||
|
||
## License |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.