User prompt
Set targetY on game container to 2/3 of screen height
User prompt
In tick, is Santa has jumped and Santa is outside the screen factoring in the game container y. Call game over
User prompt
times gameContainer.y math by 0.05 rather than 0.1
User prompt
Smooth gameContainer.y math
User prompt
Only run the gameContainer.y code in tick if hasJumped is false
User prompt
only allow the code in self.currentHouse to run if self.hasJumped is false
Code edit (1 edits merged)
Please save this source code
User prompt
When jumping calculate direction based on Santas rotation
Code edit (2 edits merged)
Please save this source code
User prompt
do not subtract self.rotationOffset when setting Santa rotation
User prompt
Make speed of Santa 10
Code edit (6 edits merged)
Please save this source code
User prompt
when calculating the var angle add self.rotationOffset rather than subtracting it
User prompt
when calculating rotationOffset remove the - before atan2
User prompt
when calculating rotationOffset make result of atan2 positive
User prompt
when calculating rotationOffset add atan2 rather than subtract
Code edit (1 edits merged)
Please save this source code
User prompt
when calculating rotationOffset add PI
Code edit (13 edits merged)
Please save this source code
User prompt
when calculating the angle variable in the currentHouse if subtract rotationOffset
User prompt
when calculating angle in the currentHouse if subtract rotationOffset
User prompt
when calculating rotationOffset subtract houses .rotation rather than adding it
User prompt
when calculating rotationOffset subtract houses[i].rotation
Code edit (1 edits merged)
Please save this source code
User prompt
Subtact house rotation when calculating rotation offset
===================================================================
--- original.js
+++ change.js
@@ -102,9 +102,9 @@
if (santaScreenX < 0 || santaScreenX > 2048 || santaScreenY < 0 || santaScreenY > 2732) {
isGameOver = true;
}
} else {
- var targetY = Math.max(0, 2732 / 2 - santa.y);
+ var targetY = Math.max(0, 2732 / 3 * 2 - santa.y);
gameContainer.y += (targetY - gameContainer.y) * 0.05;
}
});
});
Circular Santa, with gifts on his back. Cartoon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Perfectly round planet looking like a house, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
round house planet, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
round house planet, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
round house planet, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
round house planet, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast.
round house planet, cartoon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Starry Christmas night sky, cartoon, background