shmem

package
v0.0.0-...-79996cc Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tick is incremented by the main game loop each frame.
	Tick uint64

	// Current position of the cursor relative to the window.
	Cursor render.Point

	// Current render engine (i.e. SDL2 or HTML5 Canvas)
	// The level.Chunk.ToBitmap() uses this to cache a texture image.
	CurrentRenderEngine render.Engine

	// Offline mode, if True then the updates check in MainScene is skipped.
	OfflineMode bool

	// Globally available Flash() function so we can emit text to the Doodle UI.
	Flash      func(string, ...interface{})
	FlashError func(string, ...interface{})

	// Globally available Prompt() function.
	Prompt    func(string, func(string))
	PromptPre func(string, string, func(string))

	// Ajax file cache for WASM use.
	AjaxCache map[string][]byte
)

Shared globals for easy access throughout the app. Not an ideal place to keep things but *shrug*

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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