generic-github-user / Hyperblock

A fun game.
https://generic-github-user.github.io/Hyperblock/
0 stars 0 forks source link

Blocks with very high strength value occasionally generated #22

Open generic-github-user opened 6 years ago

generic-github-user commented 6 years ago

image

generic-github-user commented 6 years ago

It appears that this can happen when firing at a block, so it might help to have a look at the projectile/block collision code.

generic-github-user commented 6 years ago

These blocks were never hit with projectiles, so it is most likely that this issue isn't caused by firing projectiles at the blocks.

image

generic-github-user commented 6 years ago

After further testing, these blocks were all eventually destroyed, although some had strength values of up to 80,000, while the maximum strength value for a single block should be in between 10,000 and 12,500 - something must be increasing these strength values.

"strength": random(10000, 12500)