Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = 420 ScreenHeight = 600 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board represents the game board.
type Dir ¶
type Dir int
Dir represents a direction.
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game represents a game state.
func (*Game) Draw ¶
func (g *Game) Draw(screen *ebiten.Image)
Draw draws the current game to the given screen.
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input represents the current key states.
type Tile ¶
type Tile struct {
// contains filtered or unexported fields
}
Tile represents a tile information including TileData and animation states.
func (*Tile) Draw ¶
func (t *Tile) Draw(boardImage *ebiten.Image)
Draw draws the current tile to the given boardImage.
func (*Tile) NextPos ¶
NextPos returns the tile's next position. NextPos is used only at testing so far.
func (*Tile) NextValue ¶
NextValue returns the tile's current value. NextValue is used only at testing so far.
Click to show internal directories.
Click to hide internal directories.