tagpro-game / tagpro-issues

Public repository to report and review TagPro bugs, enhancements and suggestions.
15 stars 4 forks source link

[bug] (rolling) bomb explosion is not centered on the bomb/ball #299

Open wilcooo opened 6 years ago

wilcooo commented 6 years ago

When an explosion happens, the particle effect is not centered on the bomb or ball.

In tagpro.particleDefinitions, the explosion has a pos at {x:0,y:0}. This should be {x:20,y:20} because the server sends the position of the top-left corner of the exploding object.

The death or pop effect has a pos of {x:0,y:0} too, but that is corrected for when the tagpro.renderer.startDeathEmitter(...,..., x+19, y+19) function is called.