Versions in this module Expand all Collapse all v0 v0.6.1 Jul 23, 2023 v0.6.0 Jul 23, 2023 Changes in this version + var Faces = make(map[int]font.Face) + var LeftRightKeys = [2]input.Key + var UpDownKeys = [2]input.Key + func Face(size int) font.Face + func IsEnterJustPressed() bool + func IsEscapeJustPressed() bool + func NewBackgroundBrightnessKeyHandler(cfg *Config, asset *Asset) func() bool + func NewBackgroundDrawer(cfg *Config, asset *Asset, fsys fs.FS, name string) func(draws.Image) + func NewDebugPrintKeyHandler(cfg *Config, asset *Asset) func() bool + func NewModeKeyHandler(cfg *Config, asset *Asset) func() bool + func NewMusicOffsetKeyHandler(cfg *Config, asset *Asset) func() bool + func NewMusicVolumeKeyHandler(cfg *Config, asset *Asset) func() bool + func NewSoundVolumeKeyHandler(cfg *Config, asset *Asset) func() bool + func NewSpeedScaleKeyHandler(cfg *Config, asset *Asset, _mode int) func() bool + func NewSubModeKeyHandler(cfg *Config, asset *Asset) func() bool + func SetTPS(tps float64) + type Asset struct + BoxMaskSprite draws.Sprite + ClearSprite draws.Sprite + CursorSprites [3]draws.Sprite + DefaultBackgroundSprite draws.Sprite + EnterSound audios.SoundPlayer + IntroSprite draws.Sprite + LoadingSprite draws.Sprite + PianoAssets map[int]*piano.Asset + SearchBoxSprite draws.Sprite + SwipeSoundPod audios.SoundPlayer + TapSoundPod audios.SoundPlayer + ToggleSounds [2]audios.SoundPlayer + TransitionSounds [2]audios.SoundPlayer + func NewAsset(cfg *Config, fsys fs.FS) *Asset + type Config struct + BackgroundBrightness float64 + ChartTreeNodeHeight float64 + ChartTreeNodeShrink float64 + ChartTreeNodeWidth float64 + ClearSpriteScale float64 + CursorSpriteScale float64 + DebugPrint bool + Mode int + MusicOffset int32 + MusicRoots []string + MusicVolume float64 + PianoConfig *piano.Config + Replay bool + ScreenSize draws.Vector2 + SearchBoxHeight float64 + SearchBoxWidth float64 + SoundVolume float64 + SubMode int + func NewConfig() *Config + func (c *Config) NormalizeMusicRoots() + func (cfg Config) ChartTreeNodeCount() int + func (cfg Config) DebugString() string + type PlayArgs struct + ChartFilename string + MusicFS fs.FS + Replay *osr.Format v0.3.1 Nov 28, 2022 Changes in this version + const CursorAdditive + const CursorBase + const CursorTrail + const ScreenSizeX + const ScreenSizeY + const TPS + const WindowSizeFull + const WindowSizeStandard + var Brightness ctrl.KeyHandler + var DefaultSkin = Skin + var Face12 font.Face + var Face16 font.Face + var Face20 font.Face + var Face24 font.Face + var Offset ctrl.KeyHandler + var S = &UserSettings + var SpeedScales []ctrl.KeyHandler + var UserSettings = NewSettings() + var UserSkin = Skin + var VolumeMusic ctrl.KeyHandler + var VolumeSound ctrl.KeyHandler + type Scene interface + Draw func(screen draws.Image) + Update func() any + type Settings struct + CursorScale float64 + MusicRoots []string + WindowSize int + func NewSettings() Settings + func (settings *Settings) Load(src Settings) + type Skin struct + BoxMask draws.Sprite + Clear draws.Sprite + Cursor [3]draws.Sprite + DefaultBackground draws.Sprite + Enter audios.Sound + Intro draws.Sprite + Loading draws.Sprite + Swipe audios.SoundBag + Tap audios.SoundBag + Toggle [2]audios.Sound + Transition [2]audios.Sound + Type int + func (skin *Skin) Load(fsys fs.FS)