[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.


  • 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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: