OSDN Git Service

commit the part that makes the map work
[automap/automap.git] / Automap / MapSRC / src / ViewFrame.js
index 663a50f..2e286b9 100644 (file)
@@ -40,7 +40,7 @@ function ViewFrame() {
 
        this.x = -1;
        this.y = -1; // can be fractional
-       this.zoom = 32; // pixels wide the images are to be
+       this.zoom = 32; // pixels wide the shards are to be
        this.updateEdges();
 }
 // prototypes, some less... notable? methods are
@@ -107,7 +107,7 @@ ViewFrame.prototype.render = function () {
                        const img = new Image(32, 32);
                        const name = round.value.join('_');
 
-                       img.src = name + '.png';
+                       img.src = 'Chunks/' + name + '.png';
 
                        decode(img, loadedImage => {
                                this.place(img, round.value[0], round.value[1]);