BZHue
Posted: Mon Jul 22, 2013 4:16 pm
Last weekend, during HACKED.io, we developed a BZFlag plugin that posts various game events to a node.js web server, which controls a set of Philips Hue lights. (It would probably have been possible to do everything from within the plugin, but the node server allowed for quicker and more flexible team development).
A recording of us playing the thing can be seen here.
edit: better sync of the different players here: http://www.youtube.com/watch?v=vIUnhrGQ4PM
The idea is that every player has a lamp and the light colour is coupled to the flag the player holds (we limited ourselves to 15 good flags).
Firing sends a brightness burst to the shooter's lamp, we also implemented lighting animations for kills and deaths.
Source code for plugin and node server (in case anyone has a Hue set) can be found here. (It's been hacked together in a very short time with limited knowledge of the BZFlag code and my C++ knowledge has long been gone, so don't expect quality code).
We won ourselves a Philips Hue kit with this!
A recording of us playing the thing can be seen here.
edit: better sync of the different players here: http://www.youtube.com/watch?v=vIUnhrGQ4PM
The idea is that every player has a lamp and the light colour is coupled to the flag the player holds (we limited ourselves to 15 good flags).
Firing sends a brightness burst to the shooter's lamp, we also implemented lighting animations for kills and deaths.
Source code for plugin and node server (in case anyone has a Hue set) can be found here. (It's been hacked together in a very short time with limited knowledge of the BZFlag code and my C++ knowledge has long been gone, so don't expect quality code).
We won ourselves a Philips Hue kit with this!