From be97478c3cf1fa3c38e1b3ef3a8d2cd28be83d85 Mon Sep 17 00:00:00 2001
From: Tim Repke <timmothey@gmx.de>
Date: Thu, 20 Aug 2015 13:56:32 +0200
Subject: [PATCH] adjusted index.php of game1

---
 .../view/signups/game1/index.php               | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/registration-system/view/signups/game1/index.php b/registration-system/view/signups/game1/index.php
index ccdb7da..34b6e72 100644
--- a/registration-system/view/signups/game1/index.php
+++ b/registration-system/view/signups/game1/index.php
@@ -14,12 +14,14 @@ class Game1SignupMethod extends SignupMethod {
         return [
             "version" => '1.0',
             "date" => '15.09.2015',
-            "contributors" => ['Manu Herrmann']
+            "contributors" => ['Manu Herrmann', 'Tim Repke']
         ];
     }
 
     public function getJSDependencies() {
-        return ['jslibs/d3.min.js', 'game.js'];
+        return ['jslib/d3.min.js', 'jslib/checkLineIntersection.js', 'jslib/priority-queue.min.js',
+            'js/camera.js','js/character.js','js/pathFinder.js', 'js/svgUtils.js', 'js/vector.js',
+            'js/game.js'];
     }
 
     public function getCSSDependencies() {
@@ -36,7 +38,17 @@ class Game1SignupMethod extends SignupMethod {
                 <div id="gameRoot" style="position:relative">
                 </div>
             </div>
-            <script>load_game();</script>';
+            <script>
+            g_smallValue = 0.000001; // fun with floats
+
+            var game = new Game({
+                pathFindingGridSize: 5,
+                usePathFinding: true,
+                size: [800, 600]
+            });
+            game.run();
+
+            </script>';
     }
 
 }
\ No newline at end of file
-- 
GitLab