WWPOL / Earth-Invader

WWPOL entry for JS13K. Play it here >>>
http://wwpol.github.io/Earth-Invader
1 stars 1 forks source link

Healthbar is not updating as frequently as shield... #11

Closed liboan closed 10 years ago

liboan commented 10 years ago

It's causing issues in detecting when the shield is down. In its current state shield hits 0 and enemies rush in towards the player but the healthbar does not say so (and doesn't play the sound).

I put console.log into the code for when the player's shield updates and when the healthbar updates, apparently healthbar only updates every third loop

shieldbug