Skip to content
Snippets Groups Projects
Commit e7fa75a5 authored by Manuel Herrmann's avatar Manuel Herrmann
Browse files

startmap defined in html

parent 8df696b2
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ function Game(config) {
Game.instance = this;
}
Game.prototype.run = function() {
d3.xml('maps/map_castle.svg', 'image/svg+xml', function(xml) {
d3.xml('maps/'+Game.config.startMap, 'image/svg+xml', function(xml) {
var gameCanvas = document.getElementById("gameCanvas");
var gameRoot = document.getElementById("gameRoot");
gameCanvas.style.width = Game.config.size[0]+'px';
......
......@@ -22,6 +22,7 @@
g_smallValue = 0.000001; // fun with floats
var game = new Game({
startMap: 'map_landing.svg',
pathFindingGridSize: 5,
usePathFinding: true,
size: [800, 600]
......
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