Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
In the grid class set the X of the grid to half the width of the game
Code edit (4 edits merged)
Please save this source code
User prompt
Add a bubble lesson to the bubble class.
Code edit (1 edits merged)
Please save this source code
Initial prompt
Bubble Shooter
===================================================================
--- original.js
+++ change.js
@@ -9,18 +9,37 @@
});
});
var Grid = Container.expand(function () {
var self = Container.call(this);
- grid.x = game.width / 2;
+ var bubbles = [];
+ var container = new Container();
+ var isWideRow = false;
+ function insertRow() {
+ var rowWidth = isWideRow ? 13 : 12;
+ for (var a = 0; a < rowWidth; a++) {
+ var bubble = new Bubble();
+ bubble.x = (2048 - bubble.width * rowWidth) / 2 + bubble.width * a;
+ self.addChild(bubble);
+ }
+ isWideRow = !isWideRow;
+ }
+ insertRow();
});
+var HintBubble = Container.expand(function () {
+ var self = Container.call(this);
+});
+var Launcher = Container.expand(function () {
+ var self = Container.call(this);
+});
/****
* Initialize Game
****/
var game = new LK.Game({
- backgroundColor: 0x000000
+ backgroundColor: 0x010c42
});
/****
* Game Code
****/
+//Game size 2048x2732
var grid = game.addChild(new Grid());
\ 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.