hud

package
v0.0.0-...-185e3b9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hud

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

func NewHud

func NewHud(hudSprites []*ebiten.Image) *Hud

func (*Hud) Draw

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

func (*Hud) MoveTo

func (h *Hud) MoveTo(x int, y int)

func (*Hud) SetLives

func (h *Hud) SetLives(lives int)

func (*Hud) SetMaxOxygenCapacity

func (h *Hud) SetMaxOxygenCapacity()

func (*Hud) SetTitle

func (h *Hud) SetTitle(levelTitle string)

func (*Hud) Update

func (h *Hud) Update()

type Progressbar

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

func NewProgressbar

func NewProgressbar(x int, y int, width int, height int, percentage int, delayTime int, drawOutsideLine bool) *Progressbar

func (*Progressbar) Draw

func (p *Progressbar) Draw(screen *ebiten.Image)

func (*Progressbar) IsEmpty

func (p *Progressbar) IsEmpty() bool

func (*Progressbar) IsFull

func (p *Progressbar) IsFull() bool

func (*Progressbar) IsNotEmpty

func (p *Progressbar) IsNotEmpty() bool

func (*Progressbar) IsNotFull

func (p *Progressbar) IsNotFull() bool

func (*Progressbar) UpdateDecrease

func (p *Progressbar) UpdateDecrease()

func (*Progressbar) UpdateIncrease

func (p *Progressbar) UpdateIncrease()

type TypeWriter

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

func NewTypeWriter

func NewTypeWriter() *TypeWriter

func (*TypeWriter) PutOneMoreCharacter

func (t *TypeWriter) PutOneMoreCharacter(displayedText string, completeText string) string

func (*TypeWriter) Write

func (t *TypeWriter) Write(completeText string) string

Jump to

Keyboard shortcuts

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