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!
BZHue
Re: BZHue
That is quite cool!!
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
- Bullet Catcher
- Captain
- Posts: 564
- Joined: Sat Dec 23, 2006 7:56 am
- Location: Escondido, California
Re: BZHue
Watch the faces of the players in the video to see how much fun it is to play BZFlag!
Re: BZHue
Thanks! BZFlag is indeed great fun, although we exaggerated a bit for the camera
It works quite well with the lights; the delay is quite small. In the video I posted only the left player is in sync due to a lack of time during the hackathon :-p A better edit can be found at http://www.youtube.com/watch?v=vIUnhrGQ4PM
It works quite well with the lights; the delay is quite small. In the video I posted only the left player is in sync due to a lack of time during the hackathon :-p A better edit can be found at http://www.youtube.com/watch?v=vIUnhrGQ4PM
Re: BZHue
Sorry this is a bit of an older post but I had to comment on it. Quite cool! If only we could have a big BZFlag convention sometime where we all come together and do something like that
•• •• •• •• ••
"Faithless is he that says farewell when the road darkens." - J.R.R. Tolkien
"Faithless is he that says farewell when the road darkens." - J.R.R. Tolkien
Re: BZHue
Lets meet after xMas 2014 @ 31c3
ccc congress in Hamburg, Germany ,Europe,
ccc congress in Hamburg, Germany ,Europe,
may the tool's be with you