Skip to content
Snippets Groups Projects
Commit be97478c authored by Tim Repke's avatar Tim Repke
Browse files

adjusted index.php of game1

parent b546cc88
No related branches found
No related tags found
No related merge requests found
...@@ -14,12 +14,14 @@ class Game1SignupMethod extends SignupMethod { ...@@ -14,12 +14,14 @@ class Game1SignupMethod extends SignupMethod {
return [ return [
"version" => '1.0', "version" => '1.0',
"date" => '15.09.2015', "date" => '15.09.2015',
"contributors" => ['Manu Herrmann'] "contributors" => ['Manu Herrmann', 'Tim Repke']
]; ];
} }
public function getJSDependencies() { 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() { public function getCSSDependencies() {
...@@ -36,7 +38,17 @@ class Game1SignupMethod extends SignupMethod { ...@@ -36,7 +38,17 @@ class Game1SignupMethod extends SignupMethod {
<div id="gameRoot" style="position:relative"> <div id="gameRoot" style="position:relative">
</div> </div>
</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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment