checkpoint

package
v1.0.0-alpha.142 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 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
	World  *engine.World
	Entity *engine.Entity

	Text  string
	Music string

	Flipped           bool
	Inactive          bool
	VVVVVV            bool
	VVVVVVOnGroundVec m.Delta

	Sound *sound.Sound
}

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

func (*Checkpoint) Despawn

func (c *Checkpoint) Despawn()

func (*Checkpoint) Spawn

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

func (*Checkpoint) Touch

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

Jump to

Keyboard shortcuts

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