Versions in this module Expand all Collapse all v0 v0.1.1 Aug 21, 2026 v0.1.0 Aug 21, 2026 Changes in this version + func ListSaves(basePath string) ([]string, error) + func RegComp[C any](game *Game) goke.CompID + type Game struct + func NewGame(res resources) *Game + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) ECS() *goke.ECS + func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) + func (g *Game) Load(basePath, label string, space *gokg.Space, onLoaded func(count int), ...) error + func (g *Game) Loop(plan func(ctx goke.RunCtx, d time.Duration)) + func (g *Game) Pause() + func (g *Game) Paused() bool + func (g *Game) RegSys(factory func() goke.System) goke.Runnable + func (g *Game) RenderSequence(rendererFactories ...func() render.Renderer) + func (g *Game) Resume() + func (g *Game) Run() + func (g *Game) Save(basePath, label string) error + func (g *Game) SetEventHandler(handler control.EventHandler) + func (g *Game) Setup(providers ...goke.SetupProvider) + func (g *Game) Step() time.Duration + func (g *Game) TogglePause() + func (g *Game) Update() error + func (g *Game) UseModule(m goke.Module) + type GameProps struct + ScreenHeight int + ScreenWidth int + TargetTPS int + Title string + type Resettable interface + Reset func() + type Resources struct + func NewResources[S, T any](gameProps *GameProps, spaceConfig spatial.Config, state S, telemetry T) *Resources[S, T] + func (r *Resources[S, T]) GetGameProps() *GameProps + func (r *Resources[S, T]) GetInputEvents() *control.InputEvents + func (r *Resources[S, T]) GetSpaceConfig() spatial.Config + func (r *Resources[S, T]) LoadState(rd io.Reader) error + func (r *Resources[S, T]) Reset() + func (r *Resources[S, T]) SaveState(w io.Writer) error + func (r *Resources[S, T]) State() *S + func (r *Resources[S, T]) TPS() *int + func (r *Resources[S, T]) Telemetry() *T + type TimeTracker struct + func NewTimeTracker() *TimeTracker + func (t *TimeTracker) CalculateSteps(physicsStep time.Duration, maxSteps int) int + func (t *TimeTracker) ProcessStatsInterval() bool