User prompt
display the formula F=G(Mm)/R^2 on the screen
User prompt
on the ninth hit of the red apple, show object9
User prompt
on the eighth hit of the red apple, show object8
User prompt
on the seventh hit of the red apple, show object7
User prompt
on the sixth hit of the red apple, show object6
User prompt
on the fifth hit of the red apple, show object5
User prompt
on the fourth hit of the red apple, show object4
User prompt
on the fourth hit of the red apple, show object4
User prompt
on the third hit of the red apple, show object3
User prompt
on the second hit of the red apple, show object2
User prompt
on the first hit of the red apple, show object1
User prompt
hide objects 1-10
User prompt
end place on the same layer as the players at the bottom of the screen
User prompt
end place on the same layer as the players at the bottom of the screen
User prompt
end on the same layer as the players.
User prompt
display the formula F=G(Mm)/R^2 on the screen on top of all layers
User prompt
display the formula F=G(Mm)/R^2 on the screen
User prompt
move object "end" behind objects 1-10
User prompt
move the "end" object to a layer below objects 1-10
User prompt
end move behind objects 1-10
User prompt
objects 1-10 move to the right by 100
User prompt
shift objects 1-10 to the right by 200
User prompt
objects 1-10 move to the right by 100
User prompt
objects 1-10 move to the right by 100
User prompt
align objects 1-10 to the bottom edge of the frame
===================================================================
--- original.js
+++ change.js
@@ -180,12 +180,10 @@
}
// Handle touch movement
function handleTouchMove(obj) {
var touchPos = obj.event.getLocalPosition(game);
- var leftBound = numberedObjects[0].x + numberedObjects[0].width / 2;
- var rightBound = numberedObjects[numberedObjects.length - 1].x - numberedObjects[numberedObjects.length - 1].width / 2;
- player.targetX = Math.max(leftBound, Math.min(touchPos.x, rightBound));
- player2.targetX = player.targetX;
+ player.targetX = touchPos.x;
+ player2.targetX = touchPos.x;
}
// Attach touch move event to the game
game.on('move', handleTouchMove);
// Game tick event
@@ -222,12 +220,14 @@
lastHealthMeter.destroy();
if (healthMeters.length === 0) {
// Trigger game over with golden effect
LK.effects.flashScreen(0xFFFF00, 1000);
- var endGameItem = game.addChild(new EndGameItem());
+ // The 'end' object is now added before numbered objects to ensure it's on a lower layer
+ var endGameItem = new EndGameItem();
endGameItem.x = player.x;
endGameItem.y = player.y;
endGameItem.visible = true;
+ game.addChildAt(endGameItem, 0);
player.visible = false;
player2.visible = false;
LK.showGameOver();
}
grass
the fields of Britain, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eureka moment, cartoon style, light, no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
heart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stars flying on an ellipse, cartoon style, side view , no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white "=" on a green apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "F" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the "G" sign on the red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " (M" on a red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white sign with a small "m" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " /" on a green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "R" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green
a white " 2" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.