From 57f311733e8b9b291d12f76e71fe0c9ee6178958 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 14 May 2021 11:16:49 +0200 Subject: [PATCH] fleche qui trancepence ? --- core/src/sagittarius/model/Arrow.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index 8d25050..bf58512 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -210,17 +210,12 @@ public class Arrow extends EntityQuad { Player player = (Player) actor; if (player == GameScreen.playerCurrent && TTL > 19.5) continue; if (Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) { - landed = true; + // Make a sound when an arrow killed somebody if ( ! SagittariusGame.disableSounds){ long shotid = arrowHitSound.play(SagittariusGame.soundsVolume); arrowHitSound.setPitch(shotid,1.5f); - } - GameScreen.removePlayer(player); - GameScreen.arrows.removeActor(this); - GameScreen.nextPlayer(); - GameScreen.setFocus(GameScreen.playerCurrent); - // Make a sound when an arrow touched + } GameScreen.removePlayer(player); break;