ui

package
v0.0.0-...-2489ded Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AugmentView

type AugmentView struct {
	SelectedIndex int
	Augments      []*augments.Augment
	// contains filtered or unexported fields
}

func NewAugmentView

func NewAugmentView() *AugmentView

func (*AugmentView) Active

func (av *AugmentView) Active() bool

func (*AugmentView) Draw

func (av *AugmentView) Draw(screen *ebiten.Image)

func (*AugmentView) Reset

func (av *AugmentView) Reset()

func (*AugmentView) SetAugments

func (av *AugmentView) SetAugments(augments []*augments.Augment)

func (*AugmentView) Update

func (av *AugmentView) Update()

type GameoverView

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

func NewGameoverView

func NewGameoverView() *GameoverView

func (*GameoverView) Active

func (gv *GameoverView) Active() bool

func (*GameoverView) Draw

func (gv *GameoverView) Draw(screen *ebiten.Image)

func (*GameoverView) Update

func (gv *GameoverView) Update(playerHP, hpToGameOver int)

type HUD

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

func NewHUD

func NewHUD(playerHP int, score uint64, wave int, multiplier uint64) *HUD

func (*HUD) Draw

func (h *HUD) Draw(screen *ebiten.Image)

func (*HUD) Update

func (h *HUD) Update(playerHP int, score uint64, wave int, multiplier uint64)

Update updates the hud information before a new draw, only call this on game state change

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

func NewMainMenuView

func NewMainMenuView() *MainMenuView
func (mv *MainMenuView) Active() bool
func (mv *MainMenuView) Draw(screen *ebiten.Image)
func (mv *MainMenuView) Update()

type PauseView

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

func NewPauseView

func NewPauseView() *PauseView

func (*PauseView) Active

func (pv *PauseView) Active() bool

func (*PauseView) Draw

func (pv *PauseView) Draw(screen *ebiten.Image)

func (*PauseView) Reset

func (pv *PauseView) Reset()

func (*PauseView) Update

func (pv *PauseView) Update()

type SplashView

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

func NewSplashView

func NewSplashView() *SplashView

func (*SplashView) Active

func (sv *SplashView) Active() bool

func (*SplashView) Draw

func (sv *SplashView) Draw(screen *ebiten.Image)

func (*SplashView) Update

func (sv *SplashView) Update()

Jump to

Keyboard shortcuts

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