checkpoint

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpoint

type Checkpoint struct {
	mixins.NonSolidTouchable
	CheckpointTarget
}

Checkpoint remembers that it was hit and allows spawning from there again. Also displays a text.

func (*Checkpoint) Spawn

func (c *Checkpoint) Spawn(w *engine.World, sp *level.SpawnableProps, e *engine.Entity) error

func (*Checkpoint) Touch

func (c *Checkpoint) Touch(other *engine.Entity)

func (*Checkpoint) Update added in v1.0.59

func (c *Checkpoint) Update()

type CheckpointTarget added in v1.0.59

type CheckpointTarget struct {
	World  *engine.World
	Entity *engine.Entity

	Text  string
	Music string

	Flipped           bool
	Inactive          bool
	VVVVVV            bool
	VVVVVVOnGroundVec m.Delta

	Sound *sound.Sound
}

CheckpointTarget remembers that it was activated and allows spawning from there again. Also displays a text.

func (*CheckpointTarget) Despawn added in v1.0.59

func (c *CheckpointTarget) Despawn()

func (*CheckpointTarget) SetState added in v1.0.59

func (c *CheckpointTarget) SetState(originator, predecessor *engine.Entity, state bool)

func (*CheckpointTarget) Spawn added in v1.0.59

func (*CheckpointTarget) Touch added in v1.0.59

func (c *CheckpointTarget) Touch(other *engine.Entity)

func (*CheckpointTarget) Update added in v1.0.59

func (c *CheckpointTarget) Update()

Jump to

Keyboard shortcuts

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