Documentation ¶
Index ¶
- type Game
- func (g *Game) BlockLanded() bool
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) DrawBlock(screen *ebiten.Image, options *ebiten.DrawImageOptions)
- func (g *Game) Drop()
- func (g *Game) Init()
- func (g *Game) Intersects(m *Matrix, x int, y int) bool
- func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (g *Game) LineFull(j int) bool
- func (g *Game) MergeBlock()
- func (g *Game) MoveLeft()
- func (g *Game) MoveRight()
- func (g *Game) RemoveLine(j int)
- func (g *Game) RemoveLines()
- func (g *Game) Rotate()
- func (g *Game) UnRotate()
- func (g *Game) Update() error
- type Matrix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) BlockLanded ¶
func (*Game) DrawBlock ¶
func (g *Game) DrawBlock(screen *ebiten.Image, options *ebiten.DrawImageOptions)
func (*Game) MergeBlock ¶
func (g *Game) MergeBlock()
func (*Game) RemoveLine ¶
func (*Game) RemoveLines ¶
func (g *Game) RemoveLines()
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func (*Matrix) RotateLeft ¶
func (*Matrix) RotateRight ¶
Click to show internal directories.
Click to hide internal directories.