Code edit (1 edits merged)
Please save this source code
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'console.log("Next type", type);' Line Number: 751
Code edit (1 edits merged)
Please save this source code
Code edit (19 edits merged)
Please save this source code
User prompt
Flash screen red rather than white
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
Add a label that shows how many fire ball powers ups you have left to FireBallPowerupOverlay
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (19 edits merged)
Please save this source code
User prompt
Where it says //Fire partiles go here spawn fire particles every tick%5
User prompt
Add a fire particle class to the game
Code edit (1 edits merged)
Please save this source code
Code edit (18 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: multiplier' in or related to this line: 'var scoreIndicator = game.addChild(new ScoreIndicatorLabel(baseValue * multiplier, bubble.type));' Line Number: 684
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -687,15 +687,10 @@
LK.effects.flashScreen(0xff0000, 3000);
LK.showGameOver();
}
if (gameIsStarted) {
- if (bubble.y + self.y < 1000) {
- gridSpeed = Math.min(gridSpeed + .001, 1);
- } else if (bubble.y + self.y < 2000) {
- gridSpeed = Math.max(gridSpeed - .001, .4);
- } else {
- gridSpeed = Math.max(gridSpeed - .001, .2);
- }
+ var targetSpeed = Math.pow((2200 - (bubble.y + self.y)) / 2200, 2) * 3 + 0.2;
+ gridSpeed += (targetSpeed - gridSpeed) / 20;
}
break;
}
}
@@ -879,9 +874,9 @@
/*
Todo:
[X] Make sure we GC nodes that drop of screen
[ ] Make preview line fade out at the end
-*/
+*/
var bulletsFired = 0; //3*30+1
var bubbleSize = 150;
var gameIsStarted = false;
var bubbleColors = [0xff2853, 0x44d31f, 0x5252ff, 0xcb2bff, 0x28f2f0, 0xffc411];
@@ -1059,121 +1054,5 @@
;
;
;
;
-;
-// Function to increase game score and update score label
-var gridSpeed = .5;
-//Game size 2048x2732
-/*
-Todo:
-[X] Make sure we GC nodes that drop of screen
-[ ] Make preview line fade out at the end
-*/
-var bulletsFired = 0; //3*30+1
-var bubbleSize = 150;
-var gameIsStarted = false;
-var bubbleColors = [0xff2853, 0x44d31f, 0x5252ff, 0xcb2bff, 0x28f2f0, 0xffc411];
-var barriers = [];
-var maxSelectableBubble = 3;
-var warningLines = [];
-for (var a = 0; a < 13; a++) {
- var wl = game.addChild(new WarningLine());
- wl.x = 2048 / 13 * (a + .5);
- wl.y = 2200;
- wl.alpha = 0;
- warningLines.push(wl);
- wl.scale.set(16, 40);
-}
-var warningOverlay = game.attachAsset('dangeroverlay', {});
-warningOverlay.y = 2280;
-var uxoverlay = game.attachAsset('uxoverlay', {});
-uxoverlay.y = 2440;
-var uxoverlay2 = game.attachAsset('uxoverlay2', {});
-uxoverlay2.y = 2460;
-for (var a = 0; a < 4; a++) {
- for (var b = 0; b < 3; b++) {
- var barrier = game.addChild(new Barrier());
- barrier.y = 2732 - 450 + b * 70;
- barrier.x = 2048 / 5 * a + 2048 / 5;
- barriers.push(barrier);
- }
- var barrierBlock = game.attachAsset('barrierblock', {});
- barrierBlock.x = 2048 / 5 * a + 2048 / 5;
- barrierBlock.y = 2732 - 450;
- barrierBlock.anchor.x = .5;
-}
-// Create a score label
-var scoreLabel = new Text2('0', {
- size: 120,
- fill: "#ffffff",
- stroke: "#000000",
- strokeThickness: 15,
- font: "Impact"
-});
-scoreLabel.anchor.set(0.5, 0);
-LK.gui.top.addChild(scoreLabel);
-var scoreMultipliers = [];
-var baseScores = [100, 250, 500, 250, 100];
-for (var a = 0; a < 5; a++) {
- var sm = new ScoreMultipliers(baseScores[a]);
- sm.x = 2048 / 5 * a + 2048 / 10;
- sm.y = 2300;
- scoreMultipliers.push(sm);
- game.addChild(sm);
-}
-var bonusUX = game.addChild(new BonusUX());
-var fireBallPowerupOverlay = game.addChild(new FireBallPowerupOverlay());
-var particlesLayer = game.addChild(new Container());
-var grid = game.addChild(new Grid());
-grid.y = 1000;
-var freeBubbleLayer = game.addChild(new Container());
-var hintBubblePlayer = game.addChild(new Container());
-var launcher = game.addChild(new Launcher());
-launcher.x = game.width / 2;
-launcher.y = game.height - 138;
-var hintBubbleCache = [];
-var hintBubbles = [];
-var isValid = false;
-var path = [];
-var bubbleAlpha = 1;
-var hintTargetX = game.width / 2;
-var hintTargetY = 0;
-game.move = function (x, y, obj) {
- hintTargetX = x;
- hintTargetY = y;
- refreshHintLine();
- // }
-};
-game.down = game.move;
-var hintOffset = 0;
-var distanceBetweenHintbubbles = 100;
-game.update = function () {
- hintOffset += 5;
- if (isValid) {
- bubbleAlpha = Math.min(bubbleAlpha + .05, 1);
- } else {
- bubbleAlpha = Math.max(bubbleAlpha - .05, 0);
- }
- refreshHintLine();
- var alphaList = grid.calculateWarningScoreList();
- for (var a = 0; a < warningLines.length; a++) {
- var value = alphaList[a] / 3;
- warningLines[a].alpha += (Math.min(value, .6) - warningLines[a].alpha) / 100;
- warningLines[a].scale.y += (value * 60 - warningLines[a].scale.y) / 100;
- }
-};
-game.up = function () {
- if (isValid) {
- launcher.fire();
- }
-};
-;
-;
-;
-;
-;
-;
-;
-;
-;
;
\ No newline at end of file
Circular white gradient circle on black background. Gradient from white on the center to black on the outer edge all around.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Soft straight Long red paint on black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Fire ball. Bubble shooter game. Thin black outline.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green notification bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.