scenes

package
v0.0.0-...-cbcac17 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credits

type Credits struct {
	// contains filtered or unexported fields
}

func NewCreditsScene

func NewCreditsScene(width, height int) *Credits

func (*Credits) Draw

func (c *Credits) Draw(screen *ebiten.Image)

func (*Credits) Init

func (c *Credits) Init()

func (*Credits) Layout

func (c *Credits) Layout(int, int) (int, int)

func (*Credits) Update

func (c *Credits) Update() (mechanics.SceneType, error)

type GameOver

type GameOver struct {
	// contains filtered or unexported fields
}

func NewGameOverScene

func NewGameOverScene(w, h int, koGopher, sadGopher *Symbol) *GameOver

func (*GameOver) Draw

func (g *GameOver) Draw(screen *ebiten.Image)

func (*GameOver) Init

func (g *GameOver) Init()

func (*GameOver) Layout

func (g *GameOver) Layout(int, int) (int, int)

func (*GameOver) Update

func (g *GameOver) Update() (mechanics.SceneType, error)

type Play

type Play struct {
	// contains filtered or unexported fields
}

func NewLevelScene

func NewLevelScene(w, h int, character *mechanics.Character, livesSymbol, coinSymbol *Symbol, coinSound, lifeSound, winSound *audio.Player, objectProvider mechanics.ObjectProvider) *Play

func (*Play) Draw

func (l *Play) Draw(screen *ebiten.Image)

func (*Play) Init

func (l *Play) Init()

func (*Play) Layout

func (l *Play) Layout(int, int) (int, int)

func (*Play) LoadLevel

func (l *Play) LoadLevel(level *mechanics.Level)

func (*Play) MoveCamera

func (l *Play) MoveCamera(dx, dy int32)

func (*Play) ReloadAfter

func (l *Play) ReloadAfter(secs int)

func (*Play) Reset

func (l *Play) Reset()

func (*Play) Update

func (l *Play) Update() (mechanics.SceneType, error)

type Quit

type Quit struct {
}

func NewQuitScene

func NewQuitScene() *Quit

func (*Quit) Draw

func (q *Quit) Draw(*ebiten.Image)

func (*Quit) Init

func (q *Quit) Init()

func (*Quit) Layout

func (q *Quit) Layout(int, int) (int, int)

func (*Quit) Update

func (q *Quit) Update() (mechanics.SceneType, error)

type Symbol

type Symbol struct {
	Img   *ebiten.Image
	Scale float64
}

type Title

type Title struct {
	// contains filtered or unexported fields
}

func NewTitleScene

func NewTitleScene(w, h int) *Title

func (*Title) Draw

func (t *Title) Draw(screen *ebiten.Image)

func (*Title) Init

func (t *Title) Init()

func (*Title) Layout

func (t *Title) Layout(int, int) (int, int)

func (*Title) Update

func (t *Title) Update() (mechanics.SceneType, error)

Jump to

Keyboard shortcuts

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