diff --git a/src/App.vue b/src/App.vue
index 4f9da13..fb076be 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,11 +1,18 @@
-
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/src/engine/camera.js b/src/engine/camera.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/engine/init.js b/src/engine/init.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/scenes/mapScene.js b/src/scenes/mapScene.js
index 32a69a6..bd8b3c5 100644
--- a/src/scenes/mapScene.js
+++ b/src/scenes/mapScene.js
@@ -45,6 +45,15 @@ class Example extends Phaser.Scene
});
y++;
});
+
+ var cam = this.cameras.main;
+
+ this.input.on("pointermove", function (p) {
+ if (!p.isDown) return;
+
+ cam.scrollX -= (p.x - p.prevPosition.x) / cam.zoom;
+ cam.scrollY -= (p.y - p.prevPosition.y) / cam.zoom;
+ });
}
}