pidebug

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package pidebug provides an API for pausing the game for debugging purposes. It is essential for building developer tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paused

func Paused() bool

func SetPaused

func SetPaused(p bool) bool

SetPaused pauses or resumes the game.

The game does not pause immediately, but only at the end of the current game loop iteration.

When the game is paused, most targets stop processing events (for example, piloop.Target or pikey.Target). Developer tools should use their debug-mode equivalents instead, such as piloop.DebugTarget or pikey.DebugTarget.

func Target

func Target() pievent.Target[Event]

Types

type Event

type Event string
const (
	EventPause  Event = "pause"
	EventResume Event = "resume"
)

Jump to

Keyboard shortcuts

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