Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: scale is not defined' in this line: '(shapeGraphicsUnderlay, scale.x = 1.2);' Line Number: 110
Code edit (2 edits merged)
Please save this source code
User prompt
add a second graphics object beneath current one in shape
User prompt
Fix Bug: 'Uncaught ReferenceError: BLEND_MODES is not defined' in this line: 'shapeGraphics.blendMode = BLEND_MODES.DIFFERENCE;' Line Number: 121
User prompt
apply blendmode difference to shapes
User prompt
add a glow effect to staticshapes
Code edit (3 edits merged)
Please save this source code
User prompt
make a background image covering the whole play area
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Remix started
Copy Chain Reaction
===================================================================
--- original.js
+++ change.js
@@ -61,9 +61,9 @@
};
var shapeGraphics;
shapeGraphics = LK.getAsset('circle', 'Circle Shape', 0.5, 0.5);
shapeGraphics.alpha = 0.7;
- self.rotation = Math.random() * Math.PI * 2;
+ self.rotation = Math.random() * (Math.PI * 2);
self.addChild(shapeGraphics);
self.isCollided = true;
self.scalingUp = true;
self.scalingDown = false;
@@ -104,16 +104,18 @@
self.color = hsvToRgb(h, s, v);
shapeGraphics.tint = self.color;
};
self.colorIndex = Math.floor(Math.random() * 32);
+ self.rotation = Math.random() * (Math.PI * 2);
self.updateColor();
shapeGraphics.alpha = 0.5;
self.addChild(shapeGraphics);
var angle = Math.random() * Math.PI * 2;
var speed = 7;
self.vx = Math.cos(angle) * speed;
self.vy = Math.sin(angle) * speed;
self.move = function () {
+ self.rotation += 0.02;
if (!self.isCollided) {
self.x += self.vx;
self.y += self.vy;
if (self.x - self.width / 2 < 0 || self.x > 2048 - self.width / 2) {
a white geometric square shape Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white flat circle shape Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white dot Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
flat white round disk Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gif circle spinning animation Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cozy living room with a christmas tree, presents, snacks, ornaments and everythning in place for christmas. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a shining star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A super shiny white metallic christmas glass ball decoration with a glowing outline. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.