tile

package
v0.0.0-...-b0a1419 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Size int = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content uint8
const (
	None Content = iota
	Outline
	Wall
	Door
	Dot
	PowerPellet
)

type Tile

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

func New

func New(content Content, point *point.Point) *Tile

func (*Tile) Content

func (t *Tile) Content() Content

func (*Tile) Draw

func (t *Tile) Draw(screen *ebiten.Image)

func (*Tile) Point

func (t *Tile) Point() *point.Point

func (*Tile) Reachable

func (t *Tile) Reachable() bool

func (*Tile) RemoveContent

func (t *Tile) RemoveContent()

Jump to

Keyboard shortcuts

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