Documentation ¶
Overview ¶
Package displayer provides a simple implementation for viewing a Tetris game
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockImg ¶
BlockImg block with given color
func (*BlockImg) ColorModel ¶
ColorModel implementation of image.Image
type Displayer ¶
Displayer displayer of the game
func NewDisplayer ¶
NewDisplayer creates a new game displayer
type GameDisplayer ¶
GameDisplayer implementation of the game displayer
func (*GameDisplayer) Render ¶
func (g *GameDisplayer) Render(tetris game.Game) game.Action
Render displays the current game for the given window
func (*GameDisplayer) WindowClosed ¶
func (g *GameDisplayer) WindowClosed() bool
WindowClosed reports if window is closed
Click to show internal directories.
Click to hide internal directories.