At last, I’m done with replays! This feature has certainly taken more time and effort to complete than what I initially thought it would. For those curious, some form of per-room player ban is next on the list.
Changes:
- Added a rec button, press it once to start recording, press it again to stop and save the recorded gameplay as a .hbr file!
- Added a “Replays” button to the room list, use this to load previously saved replays.
- Added a ping graph option, enabling it will display a graph of your ping history (Doesn’t show if you are the host).
- Added a new URL parameter which lets users link to replay files. Try it! Detailed explanation below.
Replay links explained (gets a bit technical):
A replay link has the following format:
“http://www.haxball.com/?replay=
Example: http://www.haxball.com/?replay=0#http://www.haxball.com/demo.hbr
There’s also a small catch, because of Flash security policies your file host needs have a crossdomain.xml policy file allowing haxball.com (and haxball.appspot.com) to read files from it.