Skip to content

nabbynz/tagpro-vcr

 
 

Repository files navigation

TagPro VCR

Usage

  1. Install the userscript: tagpro-vcr.user.js.

  2. Play a game of TagPro.

  3. Upload the recording to the VCR: https://keratagpro.github.io/tagpro-vcr

Technical Info

The userscript records WebSocket messages coming from the server and stores them with timestamps into a newline-delimited JSON file. More specifically, every line is an array consisting of a timestamp, the event name and event data. For example, this is an event for playing the burst sound at 14.52s:

[14520, "sound", { "s": "burst", "v": 1 }]

The VCR webpage runs the original game client code (global-game.js), but replaces the socket.io library with a "fake socket" that replays the recorded events.

Development

  • Install lerna globally: npm install --global lerna
  • Run lerna bootstrap (runs npm install in sub-packages)
  • Run lerna run build (runs npm run build in sub-packages)

To automatically recompile when source files change, cd to sub-package directories and run npm run watch.

About

TagPro VCR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 77.5%
  • JavaScript 11.8%
  • HTML 9.1%
  • CSS 1.6%