===================================================================
--- original.js
+++ change.js
@@ -67,9 +67,9 @@
bird.y = 1366; // Start in the middle of the screen vertically
// Add touch event listener to make bird move up and down smoothly
game.on('down', function (x, y, obj) {
bird.flyUp = true;
- bird.rotation += Math.PI / 2; // Rotate 90 degrees
+ // bird.rotation += Math.PI / 2; // Rotate 90 degrees
bird.scale.y = 0.7; // Reduce bird size vertically by 10%
LK.setTimeout(function () {
bird.scale.y = 1; // Return bird to original size after 100ms
}, 100);
@@ -140,9 +140,9 @@
// Initialize score counter
var score = 0;
var scoreTxt = new Text2(score.toString(), {
size: 75,
- fill: "#FFFFFF"
+ fill: 0xFFFFFF
});
scoreTxt.anchor.set(1, 0); // Anchor to the top right corner
LK.gui.topRight.addChild(scoreTxt);
// Update score every 2 seconds