User prompt
the score is displayed on the top of the screen
User prompt
the acorn blink
Code edit (17 edits merged)
Please save this source code
User prompt
randomly on the top half of the screen, an acorn is spawned. If catched by the player, the player score increase and the acorn respawn elsewhere
Code edit (1 edits merged)
Please save this source code
Code edit (8 edits merged)
Please save this source code
User prompt
the first platform height should be the screen height
User prompt
if the player touch to bottom of the screen, gameover
Code edit (2 edits merged)
Please save this source code
User prompt
add an infinite scrolling background of a tree trunk
Code edit (1 edits merged)
Please save this source code
User prompt
the player can only jump from platform
Code edit (17 edits merged)
Please save this source code
User prompt
the platform should scroll down slowly at start and increasing the speed progressivly
Code edit (2 edits merged)
Please save this source code
User prompt
the platform should scroll down slowly
Code edit (1 edits merged)
Please save this source code
User prompt
the platform scroll down should not be instant but smooth
Code edit (8 edits merged)
Please save this source code
User prompt
when a platform goes to the bottom of the screen, it's moved to the top of the screen at a new random X position and new width.
User prompt
when the player land on a platform, all platform should scroll down of the gap distance
Code edit (9 edits merged)
Please save this source code
User prompt
the platform should be placed randomly on screen from bottom to top, with a small gap between them
Code edit (1 edits merged)
Please save this source code
User prompt
the player should not pass trough platform
===================================================================
--- original.js
+++ change.js
@@ -94,8 +94,14 @@
/****
* Game Code
****/
// Create static platforms
+var scoreTxt = new Text2('0', {
+ size: 150,
+ fill: "#ffffff"
+});
+scoreTxt.anchor.set(0.5, 0);
+LK.gui.top.addChild(scoreTxt);
game.on('move', function (obj) {
var pos = obj.event.getLocalPosition(game);
hero.x = pos.x;
});
a little squirrel with sun glasses and earring. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d flat leaf green horizontal platform. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
acorn. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.