So in the first post we talked about the base system, some lessons learnt and a little bit of overview, so now we’re going to go through the funky bits I built in some detail. First off the Central Control Room Panel
Okay so first of the three props made was the central control panel screen, which looked a bit like this:
Now a lot of this is just fluff, the players first saw this projected onto a large wall monitor in a dark and abandoned room, counting down until 9pm (the end of the game), and all the blinking red lights (and couple of green ones at the start of the game) were designed to let them know in no uncertain terms that this event has a time limit to it and something will need to be done :)
Now primarily this is just a pretty simple page, it has some natty features however. For a start its mostly based on the excellent TimeTo jQuery Plugin which gives it its big chunky countdown clock, and nothing says urgent! like a clock with flipping numbers counting down :)
Second thing to notice about this page is the External Air Pumps. At the start of the game these are still Green and good, but part way through (18:30) they entered a degraded state, accompanied by a loud klaxon noise, and finally they failed (20:30) about half an hour before game end, signalled by a long wailing siren that echoed through the corridors – all to keep the players on their toes for impending doom :)
The air pumps were done with setTimeout() functions that used jQuery’s cool .toggle() function to hide one div and display the next in sequence, it also used the built in audio support from HTML5 to play the sound effects, which is actually pretty simple:
To get that working I read Mozilla’s “Using HTML Audio and Video Guide” which is pretty natty, however that didn’t work at first, until I read this Stackoverflow post “Firefox won’t play .WAV files using the HTML5 <audio> tag?” which details how Firefox needs a specific bit depth (8, 16) as well as a specific number of channels (2) in order to work, a quick reencoding later and it just worked :)
So where did those sound effects all come from? The Freesound Project as normal :) The access granted noise was Access Granted.wav by EthanolProductions, the others I’ll try and find the links for later.
But yeah it was a pretty simple bit of fluff in a way, but it gave the players a way of knowing the boundary of the game, and it kept the tension up by alerting them to the upcoming doom of the end of the game.
Next step: Door controls :)