===================================================================
--- original.js
+++ change.js
@@ -93,10 +93,10 @@
game.update = function () {
// Update hero
if (LK.isTouching) {
var touchPos = game.toLocal(LK.touch.global);
- hero.x += (touchPos.x - hero.x) * 0.1;
- hero.y += (touchPos.y - hero.y) * 0.1;
+ hero.x = touchPos.x;
+ hero.y = touchPos.y;
}
hero.update();
// Update enemies
for (var i = enemies.length - 1; i >= 0; i--) {