egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

Attack hitboxes do not reflect what's being shown on-screen #70

Closed Col-E closed 7 years ago

Col-E commented 7 years ago

Take this clip for example. I have 2 zombies. One is behind a wall and I am looking away from the wall. When I click it behaves as if I'm attacking it.

egordorichev commented 7 years ago

Hm, I don't think, this is an issue. The pickaxe can hit them, right? And again, this is a game. Will leave this open for now.

Col-E commented 7 years ago

The issue should be an easy fix. As it stands the attack hitbox seems to just be the player's hitbox. All that needs to be done is to shift the hitbox based on the direction the player's aiming.

egordorichev commented 7 years ago

Yeah, the attack hitbox must be not the player hitbox, but the hitbox of the tool. Current variant is a template.

Col-E commented 7 years ago

This was fixed in https://github.com/egordorichev/LastTry/pull/73