data

package
v0.0.0-...-9927e17 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyTile = iota
	WallTile
	CarTile
	PretendTile
	FinishTile
	MaxTile
)

Variables

View Source
var (
	EmptyColor color.RGBA = color.RGBA{0, 0, 0, 255}
	WallColor  color.RGBA = color.RGBA{125, 125, 125, 255}
)

Functions

func GetFile

func GetFile(filename string) ([]byte, error)

func HexToRGBA

func HexToRGBA(hex string) color.RGBA

Types

type Property

type Property struct {
	Name, PropType string
	Value          any
}

func NewProperty

func NewProperty(name, propType string, value any) *Property

type Tile

type Tile struct {
	Id int
}

func NewTile

func NewTile(id int) (*Tile, error)

func (Tile) IsEmpty

func (t Tile) IsEmpty() bool

func (Tile) IsNil

func (t Tile) IsNil() bool

func (Tile) IsWall

func (t Tile) IsWall() bool

Jump to

Keyboard shortcuts

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