field

package
v0.0.0-...-e49e192 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHAR_SIZE = 16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

func New

func New(data string) *Field

func (*Field) Draw

func (f *Field) Draw(screen *ebiten.Image, gameData GameData, viewPositionX, viewPositionY int)

func (*Field) EraseField

func (f *Field) EraseField(x, y int)

func (*Field) GetField

func (f *Field) GetField(x, y int) fieldtype.FieldType

func (*Field) GetStartPoint

func (f *Field) GetStartPoint() (int, int)

func (*Field) IsItem

func (f *Field) IsItem(x, y int) bool

func (*Field) IsItemGettable

func (f *Field) IsItemGettable(x, y int, gameData GameData) bool

func (*Field) IsRidable

func (f *Field) IsRidable(x, y int) bool

func (*Field) IsSpike

func (f *Field) IsSpike(x, y int) bool

func (*Field) IsWall

func (f *Field) IsWall(x, y int) bool

func (*Field) Update

func (f *Field) Update()

type GameData

type GameData interface {
	IsHiddenSecret() bool
}

Jump to

Keyboard shortcuts

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