From b9a8e8d90786bf7a9bba8399903cc31dcc19e886 Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@eurac.edu>
Date: Wed, 6 Apr 2022 10:40:52 +0200
Subject: [PATCH] refactor: #fe parameterize clues group padding

---
 frontend/src/js/fight_scene.ts | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts
index 73d6eb3..e74b2fc 100644
--- a/frontend/src/js/fight_scene.ts
+++ b/frontend/src/js/fight_scene.ts
@@ -245,10 +245,11 @@ export default class FightScene extends Phaser.Scene {
   }
 
   initCluesGroup() {
+    const pad = 4;
     const bounds = new Phaser.Geom.Rectangle(
-      4,
-      4,
-      this.cameras.main.width - 8,
+      pad,
+      pad,
+      this.cameras.main.width - 2 * pad,
       this.cameras.main.height / 2,
     );
     this.cluesGroup = this.physics.add.group({
-- 
GitLab