Skip to content

CTechDigitalpt/simple-tetris-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game

A simple Tetris game built with HTML, CSS, and JavaScript.

Features

  • Classic Tetris gameplay
  • Responsive design
  • Score tracking
  • Customizable game canvas size
  • High score leaderboard (stores top 10 scores)
  • Toggle-able sidebar with game information
  • Full keyboard controls

Technologies Used

  • HTML5 for structure
  • CSS3 for styling
  • JavaScript for game logic

Sneaky Snake Game Screenshot

How to Play

  1. Open index.html in your browser.
  2. Use the following controls:
    • Left arrow key: Move piece left
    • Right arrow key: Move piece right
    • Up arrow key: Rotate piece
    • Down arrow key: Speed up piece
  3. Clear lines to score points and progress to higher levels.
  4. The game ends when pieces stack to the top of the board.

Customization

  • Adjust the canvas width and height using the input controls
  • Click "Apply Size" to resize the game board
  • For best experience, play in full screen mode (F11)

High Scores

The game automatically tracks and displays the top 10 high scores achieved. These scores are stored locally in your browser.

Display Options

  • Use the "Hide Sidebar" button to toggle the sidebar visibility for a more immersive gameplay experience
  • The game is designed to be responsive and playable on various screen sizes

Installation

  1. Clone the repository:
    git clone https://github.com/CTechDigitalpt/simple-tetris-game.git
  2. Navigate to the project directory:
    cd simple-tetris-game
  3. Open index.html in your browser to start playing.

No additional dependencies or installations required!

Contributing

See CONTRIBUTING.md for guidelines.

Support

If you enjoy this game and would like to support its continued development, please consider making a donation:

Donate via PayPal

Donate via Patreon

Donate via Ko-Fi

Your support helps maintain and improve this project and others. Thank you!

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple Tetris game built with HTML, CSS, and JavaScript.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published