From 148224051b2af11df772e56a1723e40e6aeb53d8 Mon Sep 17 00:00:00 2001
From: hades-cntrl <77414369+hades-cntrl@users.noreply.github.com>
Date: Wed, 20 Jan 2021 15:56:30 +1300
Subject: [PATCH 1/2] Update fill rounded rectangle.js

---
 .../graphics/fill rounded rectangle.js        | 43 ++++++++++---------
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/public/src/game objects/graphics/fill rounded rectangle.js b/public/src/game objects/graphics/fill rounded rectangle.js
index 89397e21c..3b9a2dd94 100644
--- a/public/src/game objects/graphics/fill rounded rectangle.js	
+++ b/public/src/game objects/graphics/fill rounded rectangle.js	
@@ -1,28 +1,29 @@
-var config = {
-    width: 800,
-    height: 600,
-    type: Phaser.AUTO,
-    parent: 'phaser-example',
-    scene: {
-        create: create
-    }
-};
-
-var game = new Phaser.Game(config);
-
-var graphics;
+let graphics;
 
-function create ()
+class Example extends Phaser.Scene
 {
-    graphics = this.add.graphics();
+    create ()
+    {
+      graphics = this.add.graphics();
 
-    graphics.fillStyle(0xffff00, 1);
+      graphics.fillStyle(0xffff00, 1);
 
-    //  32px radius on the corners
-    graphics.fillRoundedRect(32, 32, 300, 200, 32);
+      //  32px radius on the corners
+      graphics.fillRoundedRect(32, 32, 300, 200, 32);
 
-    graphics.fillStyle(0xff00ff, 1);
+      graphics.fillStyle(0xff00ff, 1);
 
-    //  Using an object to define a different radius per corner
-    graphics.fillRoundedRect(360, 240, 400, 300, { tl: 64, tr: 22, bl: 12, br: 0 });
+      //  Using an object to define a different radius per corner
+      graphics.fillRoundedRect(360, 240, 400, 300, { tl: 64, tr: 22, bl: 12, br: 0 });
+    }
 }
+
+let config = {
+  width: 800,
+  height: 600,
+  type: Phaser.AUTO,
+  parent: 'phaser-example',
+  scene: [ Example ]
+};
+
+const game = new Phaser.Game(config);

From 2adbf78cff9b99ab0d2d7da00186541ee0e3867f Mon Sep 17 00:00:00 2001
From: hades <tsunflowertea@gmail.com>
Date: Fri, 22 Jan 2021 09:50:38 +1300
Subject: [PATCH 2/2] consistent indentation

---
 .../graphics/fill rounded rectangle.js        | 24 +++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/public/src/game objects/graphics/fill rounded rectangle.js b/public/src/game objects/graphics/fill rounded rectangle.js
index 3b9a2dd94..d0ff0ac7b 100644
--- a/public/src/game objects/graphics/fill rounded rectangle.js	
+++ b/public/src/game objects/graphics/fill rounded rectangle.js	
@@ -4,26 +4,26 @@ class Example extends Phaser.Scene
 {
     create ()
     {
-      graphics = this.add.graphics();
+        graphics = this.add.graphics();
 
-      graphics.fillStyle(0xffff00, 1);
+        graphics.fillStyle(0xffff00, 1);
 
-      //  32px radius on the corners
-      graphics.fillRoundedRect(32, 32, 300, 200, 32);
+        //  32px radius on the corners
+        graphics.fillRoundedRect(32, 32, 300, 200, 32);
 
-      graphics.fillStyle(0xff00ff, 1);
+        graphics.fillStyle(0xff00ff, 1);
 
-      //  Using an object to define a different radius per corner
-      graphics.fillRoundedRect(360, 240, 400, 300, { tl: 64, tr: 22, bl: 12, br: 0 });
+        //  Using an object to define a different radius per corner
+        graphics.fillRoundedRect(360, 240, 400, 300, { tl: 64, tr: 22, bl: 12, br: 0 });
     }
 }
 
 let config = {
-  width: 800,
-  height: 600,
-  type: Phaser.AUTO,
-  parent: 'phaser-example',
-  scene: [ Example ]
+    width: 800,
+    height: 600,
+    type: Phaser.AUTO,
+    parent: 'phaser-example',
+    scene: [ Example ]
 };
 
 const game = new Phaser.Game(config);