walker

package
v0.0.0-...-55c117e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Walker

type Walker interface {
	X() int
	Y() int
	XY() (int, int)
	Image() *ebiten.Image

	SetX(int)
	SetY(int)
	SetXY(int, int)

	Update()
	Draw(*ebiten.Image)

	SetUpdateFunc(func())
	SetDrawFunc(func(*ebiten.Image))
	SetImage(*ebiten.Image)
}

func NewTraditionalRandomWalker

func NewTraditionalRandomWalker(x, y int, walkerType WalkerType) Walker

func NewWalker

func NewWalker() Walker

type WalkerType

type WalkerType int
const (
	FourStep WalkerType = iota
	EightStep
)

Jump to

Keyboard shortcuts

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