Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
IntroPosterTrail adapt rotation to the angle
Code edit (1 edits merged)
Please save this source code
User prompt
IntroPosterTrail make squares flee in random angles
Code edit (4 edits merged)
Please save this source code
User prompt
in IntroPosterTrail, make squares flee from the center
Code edit (1 edits merged)
Please save this source code
User prompt
IntroPosterTrail : squares shoult move from self center to the screen borders in all directions
User prompt
IntroPosterTrail createTrailSquare make squares rectagles 5x30
Code edit (6 edits merged)
Please save this source code
User prompt
create a new Class for a introPosterTrail that use square assets to create a trail behind introPoster
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
in StartButton update, animate introPoster alpha from 0.5 to 1 and vice versa
Code edit (8 edits merged)
Please save this source code
User prompt
hide all detritus before isStarted and show them after start
Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
add the introPoster just above the statButton and remove it when removing startButton
Code edit (4 edits merged)
Please save this source code
User prompt
in stopBonus , restore speedFactor to PLAYER_SPEED_FACTOR_BASE
Code edit (7 edits merged)
Please save this source code
User prompt
in `if (nextNode && nextNode.background && nextNode.background.children.length > 0) {...}` search if a child of nextNode.background.children has property taken === false if so change add a new property autoTake = true to this child
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -344,8 +344,20 @@
self.fadeout = false;
rescale();
}
function update() {
+ if (!isStarted) {
+ self.visible = false;
+ return;
+ } else {
+ self.visible = true;
+ }
+ if (!isStarted) {
+ self.visible = false;
+ return;
+ } else {
+ self.visible = true;
+ }
if (!isActive()) {
return;
}
if (self.fadeout && self.alpha > 0) {
@@ -1308,10 +1320,11 @@
}));
var introPoster = game.addChild(LK.getAsset('introPoster', {
anchorX: 0.5,
anchorY: 0.5,
- x: GAME_WIDTH / 2,
- y: 640
+ x: 960,
+ y: 640,
+ blendMode: 1
}));
var playerContainer = game.addChild(new Container());
var roadContainer = game.addChild(new Container());
var road = roadContainer.addChild(new Road({
white
circle sliced into many pieces, flat image. 2d, white background, shadowless.
pixel art of a tall, tree. game asset, 2d, white background, shadowless.
pixel art cloud. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
dark space.
flying lava bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a bonus crystal ball with the recycle symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
top view A green round start button empty in the center like a ring.