The play-helpers package
@patterkit/play-helpers is an
optional companion for the JavaScript runtime that smooths common host wiring. None of it is required to
play, the core Engine does everything; these just save you a little boilerplate.
- Save/load:
saveState/loadState, andserializeState/deserializeStatefor a string you can drop straight intolocalStorageor a file. See Save and load. - Property setters:
getProperty,setProperty, and a batchedsetProperties(engine, { "@hp": 10, "@scene.locked": false }). - A state logger:
createStateLogger(engine)to trace each step and diff state over time while you’re debugging.
MIT-licensed open source · Made by Ian Thomas · patterkit.com