===================================================================
--- original.js
+++ change.js
@@ -123,7 +123,11 @@
};
// Handle touch events for shooting
game.down = function (x, y, obj) {
hero.shoot();
- // hero.x = x;
- // hero.y = y;
+ hero.x = x;
+ hero.y = y;
+};
+game.move = function (x, y, obj) {
+ hero.x = x;
+ hero.y = y;
};
\ No newline at end of file