game

package
v0.0.0-...-8151978 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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 (g *Game) BlockLanded() bool

func (*Game) Draw

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

func (*Game) DrawBlock

func (g *Game) DrawBlock(screen *ebiten.Image, options *ebiten.DrawImageOptions)

func (*Game) Drop

func (g *Game) Drop()

func (*Game) Init

func (g *Game) Init()

func (*Game) Intersects

func (g *Game) Intersects(m *Matrix, x int, y int) bool

func (*Game) Layout

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

func (*Game) LineFull

func (g *Game) LineFull(j int) bool

func (*Game) MergeBlock

func (g *Game) MergeBlock()

func (*Game) MoveLeft

func (g *Game) MoveLeft()

func (*Game) MoveRight

func (g *Game) MoveRight()

func (*Game) RemoveLine

func (g *Game) RemoveLine(j int)

func (*Game) RemoveLines

func (g *Game) RemoveLines()

func (*Game) Rotate

func (g *Game) Rotate()

func (*Game) UnRotate

func (g *Game) UnRotate()

func (*Game) Update

func (g *Game) Update() error

type Matrix

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

func (*Matrix) RotateLeft

func (m *Matrix) RotateLeft() *Matrix

func (*Matrix) RotateRight

func (m *Matrix) RotateRight() *Matrix

Jump to

Keyboard shortcuts

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