示例工程 33-neovim-and-love
33-neovim-and-love/03-love-state-machine/README.md
# 03 · love-state-machine
**演示**:`update(game, dt)` 纯逻辑,累计 1.1 秒后从 idle 进入 running。
**运行时**:`lua54`(纯逻辑;真实 LÖVE 为 🖐)。
**运行**:
```sh
.tools/bin/lua54 scripts/run-example.lua examples/33-neovim-and-love/03-love-state-machine
.tools/bin/lua54 scripts/test-example.lua examples/33-neovim-and-love/03-love-state-machine
```
**预期输出**(lua 5.4.9 / macOS arm64):
```text
state=running time=1.1
```
**看点**:把 update 逻辑与 `love.draw` 解耦,可单测。
**注意**:🖐 真实 LÖVE 的 dt 由引擎传入,帧率不稳定。