ui

package
v0.0.0-...-d664ad9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GameTitle       = "Oprelo"
	GameDescription = "Press <Enter> to start"
	GameStartKey    = ebiten.KeyEnter

	PauseTitle       = "Pause"
	PauseDescription = "Press <P> to resume"
	PauseResumeKey   = ebiten.KeyP
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Background

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

func NewBackground

func NewBackground() *Background

func (*Background) Draw

func (b *Background) Draw(screen *ebiten.Image)

func (*Background) Initialize

func (b *Background) Initialize()

func (*Background) Update

func (b *Background) Update()

type GameOver

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

func NewGameOver

func NewGameOver() *GameOver

func (*GameOver) Activate

func (g *GameOver) Activate(stats core.Statistics)

func (*GameOver) Draw

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

func (*GameOver) Initialize

func (g *GameOver) Initialize()
type Menu struct {
	Active bool
	// contains filtered or unexported fields
}

func NewMenu

func NewMenu(title, desc string, stopKey ebiten.Key) *Menu
func (m *Menu) Draw(screen *ebiten.Image)
func (m *Menu) Initialize()
func (m *Menu) Update()

type Splash

type Splash struct {
	Active bool
	// contains filtered or unexported fields
}

func NewSplash

func NewSplash() *Splash

func (*Splash) Draw

func (s *Splash) Draw(screen *ebiten.Image)

func (*Splash) Update

func (s *Splash) Update()

Jump to

Keyboard shortcuts

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