User prompt
Slow down the player speed to half
User prompt
Slow down the cars moving to the hald of speed
User prompt
The car changes the direction of its rotation with every mouse click
User prompt
Decrease the distance between two trees to half the current distance
User prompt
Decrease the distance between two trees to half the current distance
User prompt
The distance between two trees should be half the current distance
User prompt
when 3 circle is done on a tree, then move slowly down the actual tree to the bottom of the track and load an other tree from the center top of map
User prompt
When the map is loaded to the game the car is starting from the center bottom of the map.
User prompt
Initialize the car at the center of the bottom of the track
User prompt
When the game is starting, the car starts from the center of the bottom of the track towards the tree.
Initial prompt
Christmas Drift
===================================================================
--- original.js
+++ change.js
@@ -9,9 +9,9 @@
var carGraphics = self.attachAsset('car', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 5;
+ self.speed = 2.5;
self.angle = 0;
// Update function to move the car in a circular path
self.update = function () {
self.angle += self.speed * 0.01;
@@ -73,11 +73,11 @@
}
};
// Event listeners for touch controls
game.down = function (x, y, obj) {
- // Decrease car speed when the screen is touched
- car.speed = 5;
+ // Increase car speed when the screen is touched
+ car.speed = 10;
};
game.up = function (x, y, obj) {
// Reset car speed when the touch is released
- car.speed = 2.5;
+ car.speed = 5;
};
\ No newline at end of file