[bug fix] Smart Bomb not firing on key press

Fixed the number of elements in the smart bomb screen flash array.
JavaScript’s Math.round() was rounding my floating point figures up to an array index that didn’t exist.

This will have affected IE users. I couldn’t recreate the problem in Opera, Firefox, Safari or Chrome.

On a plus note it gave me the chance to look at presenting a dramatic screen flash to accompany the smart bomb explosion.

Post a comment or leave a trackback: Trackback URL.

Comments

  • Marc  On September 24, 2008 at 9:21 am

    instead of use “gameaudio = gameaudio == true ? false : true;”

    you can do: “gameaudio = !gameaudio;”

    value = !true; //result in false;

    good and cool job!

Leave a reply to Marc Cancel reply