ending

package
v1.5.220 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditsTarget

type CreditsTarget struct {
	World *engine.World
	State bool
}

CreditsTarget shows the credits.

func (*CreditsTarget) Despawn

func (c *CreditsTarget) Despawn()

func (*CreditsTarget) SetState

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

func (*CreditsTarget) Spawn

func (*CreditsTarget) Touch

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

func (*CreditsTarget) Update

func (c *CreditsTarget) Update()

type FadeTarget

type FadeTarget struct {
	World *engine.World

	Frames int
	Frame  int
	State  bool

	ColorM colorm.ColorM
}

FadeTarget fades the screen out.

func (*FadeTarget) Despawn

func (f *FadeTarget) Despawn()

func (*FadeTarget) SetState

func (f *FadeTarget) SetState(originator, predecessor *engine.Entity, state bool)

func (*FadeTarget) Spawn

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

func (*FadeTarget) Touch

func (f *FadeTarget) Touch(other *engine.Entity)

func (*FadeTarget) Update

func (f *FadeTarget) Update()

type Goal

type Goal struct {
	World  *engine.World
	Entity *engine.Entity
}

Goal makes the player move towards it when activated.

func (*Goal) Despawn

func (g *Goal) Despawn()

func (*Goal) SetState

func (g *Goal) SetState(originator, predecessor *engine.Entity, state bool)

func (*Goal) Spawn

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

func (*Goal) Touch

func (g *Goal) Touch(other *engine.Entity)

func (*Goal) Update

func (g *Goal) Update()

type StopTimerTarget

type StopTimerTarget struct {
	World *engine.World
}

StopTimerTarget makes the player move towards it when activated.

func (*StopTimerTarget) Despawn

func (s *StopTimerTarget) Despawn()

func (*StopTimerTarget) SetState

func (s *StopTimerTarget) SetState(originator, predecessor *engine.Entity, state bool)

func (*StopTimerTarget) Spawn

func (*StopTimerTarget) Touch

func (s *StopTimerTarget) Touch(other *engine.Entity)

func (*StopTimerTarget) Update

func (s *StopTimerTarget) Update()

type ZoomTarget

type ZoomTarget struct {
	World *engine.World

	State  bool
	Frames int
	Frame  int
}

ZoomTarget zooms the screen out.

func (*ZoomTarget) Despawn

func (z *ZoomTarget) Despawn()

func (*ZoomTarget) SetState

func (z *ZoomTarget) SetState(originator, predecessor *engine.Entity, state bool)

func (*ZoomTarget) Spawn

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

func (*ZoomTarget) Touch

func (z *ZoomTarget) Touch(other *engine.Entity)

func (*ZoomTarget) Update

func (z *ZoomTarget) Update()

Jump to

Keyboard shortcuts

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