===================================================================
--- original.js
+++ change.js
@@ -12,10 +12,9 @@
});
self.speed = 10;
self.direction = 0; // Direction in radians
self.update = function () {
- // Update the direction of the arrow every frame
- self.direction += Math.PI / 30; // Change this value to make the arrow rotate faster or slower
+ // Update the position of the arrow every frame
self.x += self.speed * Math.cos(self.direction);
self.y += self.speed * Math.sin(self.direction);
};
});