Documentation ¶
Index ¶
- Variables
- func HasCollision(a, b Thingi, move *Move) bool
- type Action
- type Enemy
- type Level
- type Move
- type Player
- type Resources
- type Thing
- func (t *Thing) Draw(s *ebiten.Image)
- func (t *Thing) ExecuteAction(a *Action, isGlitching bool)
- func (t *Thing) GetAction() *Action
- func (t *Thing) Girth() (float64, float64)
- func (t *Thing) HasCollision(x, y float64) bool
- func (t *Thing) IsBlock() bool
- func (t *Thing) IsBlockGlitch() bool
- func (t *Thing) IsEnemy() bool
- func (t *Thing) IsExit() bool
- func (t *Thing) IsGlitching() bool
- func (t *Thing) Move(move *Move)
- func (t *Thing) Position() (float64, float64)
- func (t *Thing) Update() *Action
- type Thingi
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchCategory = errors.New("no such category") ErrMissingDirectory = errors.New("missing directory") )
View Source
var CELL_SCALE = 16
View Source
var LOAD_TICKS = 120
View Source
var MAX_HISTORY = 10
Functions ¶
func HasCollision ¶
Types ¶
type Level ¶
type Level struct { LevelNumber int // contains filtered or unexported fields }
func LevelFromText ¶
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func InitResources ¶
type Thing ¶
type Thing struct { Name string `yaml:"name"` Symbol string `yaml:"symbol"` Enemy bool `yaml:"enemy"` Block bool `yaml:"block"` BlockGlitch bool `yaml:"blockGlitch"` Speed float64 `yaml:"speed"` MaxEnergy int `yaml:"energy"` Exit bool `yaml:"exit"` Behavior string `yaml:"behavior"` // contains filtered or unexported fields }
func ThingFromFile ¶
func ThingFromThing ¶
func (*Thing) ExecuteAction ¶
func (*Thing) HasCollision ¶
func (*Thing) IsBlockGlitch ¶
func (*Thing) IsGlitching ¶
Click to show internal directories.
Click to hide internal directories.