config

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package config is the model for the player's personal settings — today the audio volume and mute plus speedrun best times — kept separate from assets, levels and saves. It is a pure leaf: the struct, its defaults, and the one policy constant. Reading and writing the file (a denshi-style Filo script) lives in filoio, like every other Linefire document, so this package imports nothing and no cycle forms.

Index

Constants

View Source
const MinBestTicks = 60

MinBestTicks is the smallest clear time accepted as a record. A real clear cannot be near-instant, so this rejects glitch/edge-case ~0 times (e.g. re-entering an already-cleared map) from ever being stored — a last-line guard for whatever the store is (local Filo config today, an online leaderboard later). ~1s at 60 TPS.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Volume    float64        // master audio volume, 0..1
	Muted     bool           //
	BestTimes map[string]int // map name -> best clear time in ticks (speedrun records)
	HighScore int            // best score across all runs (the arcade HI score)
}

Config is the persisted settings document.

func Default

func Default() Config

Default is the configuration of a fresh install.

Jump to

Keyboard shortcuts

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