Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + const ScreenHeight + const ScreenWidth + func MoveTiles(tiles map[*Tile]struct{}, size int, dir Dir) bool + type Board struct + func NewBoard(size int) (*Board, error) + func (b *Board) Draw(boardImage *ebiten.Image) + func (b *Board) Move(dir Dir) error + func (b *Board) Size() (int, int) + func (b *Board) Update(input *Input) error + type Dir int + const DirDown + const DirLeft + const DirRight + const DirUp + func (d Dir) String() string + func (d Dir) Vector() (x, y int) + type Game struct + func NewGame() (*Game, error) + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) + func (g *Game) Update() error + type Input struct + func NewInput() *Input + func (i *Input) Dir() (Dir, bool) + func (i *Input) Update() + type Tile struct + func NewTile(value int, x, y int) *Tile + func (t *Tile) Draw(boardImage *ebiten.Image) + func (t *Tile) IsMoving() bool + func (t *Tile) NextPos() (int, int) + func (t *Tile) NextValue() int + func (t *Tile) Pos() (int, int) + func (t *Tile) Update() error + func (t *Tile) Value() int + type TileData struct Other modules containing this package github.com/MattSwanson/ebiten