You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
yinqiang 95d3f05079 Initial commit: Tetris game implementation in Go 1 week ago
README.md Initial commit: Tetris game implementation in Go 1 week ago
block.go Initial commit: Tetris game implementation in Go 1 week ago
game.go Initial commit: Tetris game implementation in Go 1 week ago
go.mod Initial commit: Tetris game implementation in Go 1 week ago
go.sum Initial commit: Tetris game implementation in Go 1 week ago
main.go Initial commit: Tetris game implementation in Go 1 week ago

README.md

Tetris Game in Go

A simple Tetris game implementation using Go and the Ebiten game engine.

Requirements

  • Go 1.16 or later
  • Ebiten v2

Installation

  1. Clone the repository
  2. Install dependencies:
go mod tidy

Running the Game

go run .

Controls

  • Left Arrow: Move piece left
  • Right Arrow: Move piece right
  • Down Arrow: Move piece down faster
  • Up Arrow: Rotate piece
  • Space: Drop piece instantly
  • ESC: Quit game

Features

  • Classic Tetris gameplay
  • Score tracking
  • Next piece preview
  • Level system