User prompt
add a new condition that does not affect the current game behaviour. if dot.y < 1400 then double start and obstacle movedown speed.
User prompt
the higher the dot is the fastest the move down speed for star and obstacle should be
Code edit (1 edits merged)
Please save this source code
User prompt
console log speedmultiplier
User prompt
make sure movedown function get updated parameter of dot.y position
User prompt
Update the tick event listener to pass the updated dot.y position to the moveDown method of stars.
Code edit (3 edits merged)
Please save this source code
User prompt
dot can't go higer than 2/3 of the screen
User prompt
dot cant be below y = 1000
Code edit (2 edits merged)
Please save this source code
User prompt
when dot reaches y = 1200, it should not move higher, instead keep objects moving downwards
User prompt
if dot y < 1200 then dot should not move upwards but obstacles and start should move down faster
User prompt
id dot reaches y = 1200 then disable selfbounce touch for half a second
Code edit (3 edits merged)
Please save this source code
User prompt
on tick move obstacles and star downwards very litttle
User prompt
obstacles should also move like start on tick
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'update')' in or related to this line: 'self.update = function (dot) {' Line Number: 268
User prompt
star, obstacle and obstacleorbit should move downwards slowly on tick.
User prompt
Add a new additional movement to Star, CircularObstacle and OrbitLine. They should all move downwards on tick very slowly.
User prompt
Add downward movement to OrbitLine class on tick
User prompt
Add a new additional movement to Star, CircularObstacle and OrbitLine. They should all move downwards on tick very slowly.
User prompt
Star and CircularObstacle and OrbitLine assets should slightly move downwards on tick.
User prompt
move smallobstacle asset slightly downward on tick.
User prompt
add method to move down orbitline on tick slighty
User prompt
star, circularobstacle and smallobsacle and orbitline, should all move downwards slightly on tick
===================================================================
--- original.js
+++ change.js
@@ -212,8 +212,12 @@
self.moveDown = function (distance, dotY) {
var speedMultiplier = dotY < 1200 ? 3 : dotY < 1400 ? 2 : dotY < 2000 ? 1.3 : 1.2;
console.log('OrbitLine speedMultiplier:', speedMultiplier);
self.y += distance * speedMultiplier + 1; // Move OrbitLine asset slightly downwards
+ // Move each smallObstacle asset slightly downwards
+ for (var i = 0; i < self.children.length; i++) {
+ self.children[i].y += 1;
+ }
};
});
// Add Hand asset below the dot
var Hand = Container.expand(function () {