app

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package app owns the high-level client object that connects configuration, resources, networking, audio, session state, and the active game mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config) (*Game, error)

func (*Game) CompleteScreenshot

func (g *Game) CompleteScreenshot(path string, err error)

func (*Game) ConsumeScreenshotRequest

func (g *Game) ConsumeScreenshotRequest() (string, bool)

func (*Game) Draw

func (g *Game) Draw(screen *render.Frame)

func (*Game) DrawOverlay

func (g *Game) DrawOverlay(screen *render.Frame)

func (*Game) DrawUIOverlay

func (g *Game) DrawUIOverlay(screen *render.Frame)

func (*Game) FrameSubmitted added in v0.7.0

func (g *Game) FrameSubmitted()

func (*Game) InputState

func (g *Game) InputState() *input.State

func (*Game) RequestQuit

func (g *Game) RequestQuit()

func (*Game) RequestScreenshot

func (g *Game) RequestScreenshot() (string, error)

func (*Game) Resize

func (g *Game) Resize(width, height int)

func (*Game) RuntimeFPS

func (g *Game) RuntimeFPS() bool

func (*Game) RuntimeFullscreen

func (g *Game) RuntimeFullscreen() bool

func (*Game) RuntimeVSync

func (g *Game) RuntimeVSync() bool

func (*Game) SetQuitFunc

func (g *Game) SetQuitFunc(quit func())

func (*Game) SetUIApp

func (g *Game) SetUIApp(uiApp client.UIApp)

func (*Game) Update

func (g *Game) Update() error

Jump to

Keyboard shortcuts

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