kanethemediocre / BlingHustle

Open sauce 2d space adventure
GNU General Public License v3.0
0 stars 0 forks source link

Bouncing bombs #1

Closed kanethemediocre closed 3 years ago

kanethemediocre commented 3 years ago

Bombs are supposed to detonate on impact with a planet Umo. The planet collision function bounces and damages all objects, and bombs only have 1 hit point. Nonetheless, the first ? 4 ? times a particular bomb collides with a planet, it will bounce rather than explode.

kanethemediocre commented 3 years ago

Fixed--The shield was still at its default value of 100. Since the bomb update function does not iterate the shield, it didn't regenerate, and was depleted after a few bounces. Shield is now set at 0 at the same time the hitpoints are set to 1.