Versions in this module Expand all Collapse all v1 v1.0.0 Jun 18, 2022 Changes in this version + const ScreenHeight + const ScreenWidth + func NewFont() font.Face + type AttractModeInput struct + func NewAttractModeInput() *AttractModeInput + func (input *AttractModeInput) IsSpacePressed() bool + func (input *AttractModeInput) Read() *ebiten.Key + type Game struct + func NewGame() *Game + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) + func (g *Game) Start() + func (g *Game) StartPlay() + func (g *Game) Update() error + type GameState int + const GameStateGameOver + const GameStatePlaying + type Input interface + IsSpacePressed func() bool + Read func() *ebiten.Key + type KeyboardInput struct + func (*KeyboardInput) IsSpacePressed() bool + func (*KeyboardInput) Read() *ebiten.Key + type Piece struct + Blocks [][]int + Image *ebiten.Image + func NewPiece(blocks [][]int, imgData []byte) *Piece + func (p *Piece) Draw(screen *ebiten.Image, gameZonePos *Position, piecePos *Position) + type Position struct + X int + Y int + func (p *Position) Add(other Position) + type Size struct + Height uint + Width uint