From d7984e42e00a808c200ca1abd496b43ff9fd0801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Autin?= Date: Thu, 24 Jun 2021 13:43:24 +0200 Subject: [PATCH] Added Hitboxes setting support Checking the "hitbox" checkbox in the launcher now displays Hitboxes in-game. --- src/gameplay/match/match.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gameplay/match/match.java b/src/gameplay/match/match.java index 7bdbbdf..8a0a10e 100644 --- a/src/gameplay/match/match.java +++ b/src/gameplay/match/match.java @@ -81,8 +81,8 @@ public class match { private static UIElementText roundWon; // Debug - public static boolean showP1Hitbox = false; // TODO modifier pour le rendre activable - public static boolean showP2Hitbox = false; + public static boolean showP1Hitbox; + public static boolean showP2Hitbox; private static List listHitboxObj = new ArrayList<>(); private static float slowFactor = 1f; private static long timeStampFpsCounter; @@ -175,6 +175,8 @@ public class match { character1 = (String) settings.get("character1"); character2 = (String) settings.get("character2"); stage = (String) settings.get("stage"); + showP1Hitbox = Boolean.parseBoolean((String) settings.get("hitboxes")); + showP2Hitbox = showP1Hitbox; } catch (ParseException | IOException e) { e.printStackTrace(); }