fleche tranpercante

This commit is contained in:
Damien 2021-05-14 10:44:35 +02:00
parent 457dcbf7c2
commit 9d9c4dca8a

View file

@ -199,11 +199,7 @@ public class Arrow extends EntityQuad {
Player player = (Player) actor; Player player = (Player) actor;
if (player == GameScreen.playerCurrent && TTL > 19.5) continue; if (player == GameScreen.playerCurrent && TTL > 19.5) continue;
if (Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) { if (Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) {
landed = true;
GameScreen.removePlayer(player); GameScreen.removePlayer(player);
GameScreen.arrows.removeActor(this);
GameScreen.nextPlayer();
GameScreen.setFocus(GameScreen.playerCurrent);
break; break;
} }
} }