@reactor-models/abot-world-halo, gives you
AbotWorldHaloModel: a client with a named method for every command and typed messages back.
At a glance
Key features
Play a character
Walk with WASD-style movement and turn the view. Each change applies from the next chunk.
Hold actions
Sprint, jump, crouch, cast, or describe an action of your own and hold it like a key.
Change the scene live
Send a new scene prompt while the world plays. Video and its matching sound keep streaming.
Quick start
Scaffold the example project withcreate-reactor-app. The
tutorial walks through the same steps in your own
app.
- npm
- pnpm
@reactor-models/abot-world-halo. For your own browser code, install that package:
- npm
- pnpm
How it works
- Connect a session and attach
main_videoandmain_audio. - In
idle, set a first frame and a scene prompt. Character pictures, a seed, and a resolution are optional. - Call
start. The state moves torunning, andgeneration_startedarrives with the first chunk. - Send
set_move,set_look, andset_actionas the player presses and releases keys. Sendset_promptto change the scene. Each change applies from the next chunk. - Call
resetto end the session and clear every input. Leaving also ends it.