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 (3 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
Code edit (1 edits merged)
Please save this source code
Initial prompt
Bubble Shooter
/****
* Classes
****/
var Bubble = Container.expand(function () {
var self = Container.call(this);
var bubbleGraphics = self.attachAsset('bubble', {
anchorX: 0.5,
anchorY: 0.5
});
});
var Grid = Container.expand(function () {
var self = Container.call(this);
grid.x = game.width / 2;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
/****
* Game Code
****/
var grid = game.addChild(new Grid()); ===================================================================
--- original.js
+++ change.js
@@ -9,8 +9,9 @@
});
});
var Grid = Container.expand(function () {
var self = Container.call(this);
+ grid.x = game.width / 2;
});
/****
* Initialize Game
@@ -21,6 +22,5 @@
/****
* Game Code
****/
-var grid = game.addChild(new Grid());
-grid.x = game.width / 2;
\ No newline at end of file
+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.
green notification bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.