states

package
v0.0.0-...-491ee29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	BgScl vector.Vector2d
	Scl   float64
	SclA  float64

	Epi *texture.TextureRegion

	MapEnd      float64
	RunningTime float64

	ScaledWidth  float64
	ScaledHeight float64
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer(beatMap *beatmap.BeatMap) *Player

func (*Player) Dispose

func (player *Player) Dispose()

func (*Player) Draw

func (player *Player) Draw(d float64)

func (*Player) DrawMain

func (player *Player) DrawMain(float64)

func (*Player) GetTime

func (player *Player) GetTime() float64

func (*Player) GetTimeOffset

func (player *Player) GetTimeOffset() float64

func (*Player) Hide

func (player *Player) Hide()

func (*Player) Show

func (player *Player) Show()

func (*Player) Update

func (player *Player) Update(delta float64) bool

type State

type State interface {
	Show()
	Hide()
	Draw(delta float64)
	Dispose()
}

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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