Why grab the Health directly?

Didn’t we just setup that nice IDamageable interface to practically do just what we wanted taking damage to be like?
And what about the IHitable as well?

One could argue the grenades are designet to be insta-killing the enemies, so they don’t really get a chance to be knocked back at all (or flashing for the hit), but shouldn’t one still stick to one’s own API defined through the interface instead of bypassing it?

One thing that might need adjusting would be the knockback direction, once the grenade has landed in whch case it’s not its firing direction but from its point out a blast outwards…

1 Like

I agree i think this was another design choice but i think grenades dont need a knockback effect but its a nice to show in case that choice wanted to be made.

Setting the knockback direction or force to be zero should be easy enough to do and sticking to how the bullets work would make it more tidy I think.
Also, if one wanted to expand the game one could have more than one type of bullets or grenades to switch between, or even another type of attack…

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms