# Interface: DevState

Defined in: [dev/src/index.ts:48](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L48)

## Properties

### camera

> **camera**: `object`

Defined in: [dev/src/index.ts:79](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L79)

Camera centre in world units, its zoom, and the view size in logical units.

#### height

> **height**: `number`

#### width

> **width**: `number`

#### x

> **x**: `number`

#### y

> **y**: `number`

#### zoom

> **zoom**: `number`

***

### events

> **events**: `Record`\<`string`, `number`\>

Defined in: [dev/src/index.ts:89](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L89)

How many times the game emitted each event (`game.emit("coin")` → `events.coin`) since load.

***

### frozen

> **frozen**: `boolean`

Defined in: [dev/src/index.ts:54](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L54)

***

### height

> **height**: `number`

Defined in: [dev/src/index.ts:70](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L70)

***

### hidden

> **hidden**: `boolean`

Defined in: [dev/src/index.ts:66](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L66)

True while the tab is hidden (a background tab, a minimised window, a hidden agent browser). The browser stops
animation frames there, so `tick` stands still even though nothing paused the game. `step(n)` still advances it.
Since 0.25.

***

### notes

> **notes**: `number`

Defined in: [dev/src/index.ts:87](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L87)

Number of notes the human has flagged (read them with `notes()`).

***

### pausedBy

> **pausedBy**: `string` \| `null`

Defined in: [dev/src/index.ts:60](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L60)

Who paused the game ("you", "agent", "spike", "error"…), or null while it's started. From 0.31.1 it follows
the game loop: "game" when the game's own code called `game.stop()`, and null once anything calls
`game.start()`. Before, it only knew about pauses made through the dev tools.

***

### pluginNames

> **pluginNames**: readonly `string`[]

Defined in: [dev/src/index.ts:83](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L83)

Installed plugin names, in install order.

***

### plugins

> **plugins**: `Record`\<`string`, `unknown`\>

Defined in: [dev/src/index.ts:85](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L85)

Snapshots from `game.inspect` providers, keyed by name. debuff's own dev tools (`dev-*`) are left out.

***

### reducedMotion

> **reducedMotion**: `boolean`

Defined in: [dev/src/index.ts:72](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L72)

`game.reducedMotion`: when true, the game's own animations may be frozen or toned down.

***

### reducedMotionForced

> **reducedMotionForced**: `boolean`

Defined in: [dev/src/index.ts:74](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L74)

True when `reducedMotion(value)` forced it, rather than the player's OS setting or the game's option.

***

### renderer

> **renderer**: `"2d"` \| `"webgl2"`

Defined in: [dev/src/index.ts:76](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L76)

Active rendering backend.

***

### scene

> **scene**: `string` \| `undefined`

Defined in: [dev/src/index.ts:49](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L49)

***

### state

> **state**: `unknown`

Defined in: [dev/src/index.ts:81](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L81)

Whatever the active scene's `inspect()` returns.

***

### stats

> **stats**: `object`

Defined in: [dev/src/index.ts:77](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L77)

#### fps

> **fps**: `number`

#### frameMs

> **frameMs**: `number`

#### samples

> **samples**: `number`

#### workMs

> **workMs**: `number`

#### workP95Ms

> **workP95Ms**: `number`

***

### step

> **step**: `number`

Defined in: [dev/src/index.ts:53](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L53)

Seconds per fixed simulation step (the game's `clock.step`, 1/60 by default).

***

### tick

> **tick**: `number`

Defined in: [dev/src/index.ts:50](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L50)

***

### time

> **time**: `number`

Defined in: [dev/src/index.ts:51](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L51)

***

### timeScale

> **timeScale**: `number`

Defined in: [dev/src/index.ts:67](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L67)

***

### width

> **width**: `number`

Defined in: [dev/src/index.ts:69](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L69)

Logical size (`game.width`/`game.height`); with `scale: "expand"` it follows the container.
