Code edit (2 edits merged)
Please save this source code
User prompt
in Bball set so that for each level completed travelTime is reduced by 25
Code edit (3 edits merged)
Please save this source code
User prompt
Add is a beam up particle effect that makes it look like a player is getting beamed up from a tile
Code edit (1 edits merged)
Please save this source code
User prompt
as particles get closer to middle reduce scale particles down
User prompt
revise particles to create a swarm of particles that spiral towards the middle point
User prompt
Add a partical effect. Effect is made up of two assets that spiral towards a centre point getting smaller as they do. particles start from either side of area. The area is 250 x 250
Code edit (4 edits merged)
Please save this source code
User prompt
When level has looped through all colours start loop again
User prompt
If the falling code for zebert has been triggered do not count any ball hits while this runs
User prompt
When the falling code is triggered do not reduce count any hits from balls
User prompt
Add white circle behind ZB2 as spe ZB1
Code edit (1 edits merged)
Please save this source code
User prompt
Add a white circle asset and place it behind ZB1. circle centralised on ZB1
User prompt
Add a white circle and place it behind ZB1
Code edit (1 edits merged)
Please save this source code
User prompt
Add a delay to the reseting of the ishitbyball flag of 2 seconds to avoid multiple hits
Code edit (10 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: ZbertDisplay is not defined' in or related to this line: 'var zbertDisplay1 = game.addChild(new ZbertDisplay('ZB1', 1024, 1366, 1, 0));' Line Number: 507
User prompt
add 2 new assets called ZB1 and ZB2 to the screen
User prompt
add 2 new assets called ZB1 and ZB2 to the screen with ability to change position on screen
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -472,8 +472,33 @@
});
starGraphics.scale.set(scale);
starGraphics.rotation = rotation;
});
+var Particle = Container.expand(function (startX, startY, endX, endY, assetId, scale) {
+ var self = Container.call(this);
+ self.x = startX;
+ self.y = startY;
+ self.scaleX = self.scaleY = scale;
+ var graphics = self.attachAsset(assetId, {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ var angle = 0;
+ var radius = Math.sqrt(Math.pow(startX - endX, 2) + Math.pow(startY - endY, 2));
+ var centerX = endX;
+ var centerY = endY;
+ var spiralTickHandler = function spiralTickHandler() {
+ angle += 0.1;
+ radius *= 0.95;
+ self.x = centerX + radius * Math.cos(angle);
+ self.y = centerY + radius * Math.sin(angle);
+ self.scaleX = self.scaleY *= 0.95;
+ if (radius < 2) {
+ self.destroy();
+ }
+ };
+ LK.on('tick', spiralTickHandler);
+});
/****
* Initialize Game
****/
@@ -656,5 +681,21 @@
if (gem && zbert.intersects(gem)) {
gem.collect();
}
// Rest of the tick code...
+ // Spawn particles at the sides of the area
+ if (LK.ticks % 60 == 0) {
+ // Every second
+ var areaWidth = 250;
+ var areaHeight = 250;
+ var areaCenterX = 2048 / 2;
+ var areaCenterY = 2732 / 2;
+ var startXLeft = areaCenterX - areaWidth / 2;
+ var startYLeft = areaCenterY - areaHeight / 2;
+ var startXRight = areaCenterX + areaWidth / 2;
+ var startYRight = areaCenterY - areaHeight / 2;
+ var particleLeft = new Particle(startXLeft, startYLeft, areaCenterX, areaCenterY, 'star1', 1);
+ var particleRight = new Particle(startXRight, startYRight, areaCenterX, areaCenterY, 'star2', 1);
+ game.addChild(particleLeft);
+ game.addChild(particleRight);
+ }
});
\ No newline at end of file
beautiful landscape. starry sky, pastel colours, high definition, alien world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. 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.
A little cube person. 2 legs. back to viewer. facing 45 degrees to the right. multicoloured skin, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle. metallic. light bevel on edge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Round furry, cute alien ball with big eyes. vivid colours, looking at 45 degrees to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bright 3d present with bow, vivd colours. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Change to be vivid multicoloured cube
A simple Triangle, flat shaded, bevelled edges. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Speech bubble with expletive word in it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
parachute. multicoloured. cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a single thin black border. flat shade. simple graphic. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
small star shape, vivid metallic blue, varying length spikes on star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.