siggame / Viseur

Visualizer for the Cadre AI game framework
http://vis.siggame.io
MIT License
5 stars 10 forks source link

Spectator Mode #2

Closed JacobFischer closed 8 years ago

JacobFischer commented 8 years ago

Spectator mode is essentially playing parsing a gamelog that is streamed to you as it is created.

Playback by the user is disabled, instead they... well... spectate. When a delta comes in, animate it. Then wait for the next delta.

Most of this involves actually communicating to Cerveau and interpreting its I/O. Thankfully, Cerveau already supports WebSockets as an IO endpoint.