package
0.2.0
Repository: https://github.com/cespare/go-tetris.git
Documentation: pkg.go.dev

# Functions

Initialize a new game, ready to be started with Start().

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
An event that doesn't cause a change to game state but causes a full redraw; e.g., a window resize.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A Board represents the state of a tetris game board, including the current piece that is descending and the blocks which already exist on the board.
A Game tracks the entire game state of tetris, including the Board, the upcoming piece, the game speed (dropDelayMillis), the score, and various other internal data.
A Tetris piece, including the all the possible rotations, a color, and an index indicating the current rotation of the piece.
A two-dimensional integer-valued vector.

# Type aliases

A map from a point on a board to the color of that cell.
No description provided by the author
A game event, generated by user input or by the game ticker.
A particular rotational instance of a piece.