/tetris

A Go implementation of the classic game of Tetris developed using the Ebiten framework.

Primary LanguageGo

Tetris

This project is my first Go project, which is a Tetris game implemented using the Ebiten library. It was developed as a learning project to explore the Go programming language and gain hands-on experience with its concepts and features.

Installation

  1. Clone the repository:

    git clone https://github.com/alexandengstrom/tetris.git
  2. Navigate to the project directory:

    cd tetris
  3. Download the project dependencies using the go.mod file:

    go mod download
  4. Build the project:

    ./build.sh

Usage

  1. Run the compiled binary to start the Tetris game:
    ./Tetris
  2. Game controls:
    • Left Arrow: Move the current block to the left.
    • Right Arrow: Move the current block to the right.
    • Up Arrow: Rotate the current block.
    • Down Arrow: Drop the current block.
  3. Objective:
    • Clear lines by filling them completely with blocks to score points.
    • Prevent the blocks from reaching the top of the playfield.
    • The game ends when the blocks stack up to the top.

Pictures

Screenshot from 2023-06-29 10-03-23