scene

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TPS         = mode.TPS
	ScreenSizeX = mode.ScreenSizeX
	ScreenSizeY = mode.ScreenSizeY
)
View Source
const (
	WindowSizeStandard = iota
	WindowSizeFull
)
View Source
const (
	CursorBase = iota
	CursorAdditive
	CursorTrail
)

Variables

View Source
var (
	Face12 font.Face
	Face16 font.Face
	Face20 font.Face
	Face24 font.Face
)

FaceDefault = basicfont.Face7x13

View Source
var (
	VolumeMusic ctrl.KeyHandler
	VolumeSound ctrl.KeyHandler
	Brightness  ctrl.KeyHandler
	Offset      ctrl.KeyHandler
	SpeedScales []ctrl.KeyHandler
)
View Source
var (
	UserSettings = NewSettings()
	S            = &UserSettings
)
View Source
var (
	DefaultSkin = Skin{Type: mode.Default}
	UserSkin    = Skin{Type: mode.User}
)

Functions

This section is empty.

Types

type Scene

type Scene interface {
	Update() any
	Draw(screen draws.Image)
}

type Settings

type Settings struct {
	MusicRoots  []string
	WindowSize  int
	CursorScale float64
}

func NewSettings

func NewSettings() Settings

func (*Settings) Load

func (settings *Settings) Load(src Settings)

type Skin

type Skin struct {
	Type              int
	DefaultBackground draws.Sprite
	Cursor            [3]draws.Sprite
	BoxMask           draws.Sprite

	Enter      audios.Sound
	Swipe      audios.SoundBag
	Tap        audios.SoundBag
	Toggle     [2]audios.Sound
	Transition [2]audios.Sound

	Intro   draws.Sprite
	Loading draws.Sprite
	Clear   draws.Sprite
}

func (*Skin) Load

func (skin *Skin) Load(fsys fs.FS)

Todo: fillBlank should fill draws.Image, not Sprite.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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