blocks

package
v0.0.0-...-abfcbbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arr

type Arr struct {
	// contains filtered or unexported fields
}

Arr ...

func ArrFromTemplate

func ArrFromTemplate(template []int, rows int) *Arr

ArrFromTemplate ..

func NewArr

func NewArr(rows int, cols int) *Arr

NewArr ...

func (*Arr) CanPlace

func (a *Arr) CanPlace(piece *Arr, r int, c int) bool

CanPlace ...

func (*Arr) ClearRow

func (a *Arr) ClearRow(r int)

ClearRow ...

func (Arr) Clone

func (a Arr) Clone() *Arr

Clone ...

func (*Arr) IsRowFull

func (a *Arr) IsRowFull(r int) bool

IsRowFull ...

func (*Arr) Place

func (a *Arr) Place(piece *Arr, r int, c int)

Place ...

func (*Arr) Remove

func (a *Arr) Remove(piece *Arr, r int, c int)

Remove ...

func (*Arr) RemoveFullRows

func (a *Arr) RemoveFullRows() int

RemoveFullRows ...

func (*Arr) RemoveRow

func (a *Arr) RemoveRow(row int)

RemoveRow ...

func (*Arr) RotateClockwise

func (a *Arr) RotateClockwise() *Arr

RotateClockwise ...

func (*Arr) RotateCounterClockwise

func (a *Arr) RotateCounterClockwise() *Arr

RotateCounterClockwise ...

func (*Arr) ShiftRow

func (a *Arr) ShiftRow(r int)

ShiftRow ...

type Game

type Game struct {
	// contains filtered or unexported fields
}

Game ...

func New

func New() *Game

New ..

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

Draw ...

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

Layout ...

func (*Game) Update

func (g *Game) Update() error

Update ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL