User prompt
move shape on the back, in terms of visibility order
User prompt
Text should be on top of the shape in terms of visibility order
User prompt
Text should be on the top of the shape
User prompt
Increase the size of the Shape, and move the text inside a shape
User prompt
remove the kite shape from everywhere in the code
User prompt
remove heptagon
User prompt
add the shapes, to array
User prompt
use different - different background image assets for buttons
User prompt
Both buttons background should be different
User prompt
Add a background for the both the buttons
User prompt
Button are not visible.
User prompt
Add Two Big buttons at the bottom of the screen, first is true and second is false
Initial prompt
ShapyBrain
===================================================================
--- original.js
+++ change.js
@@ -26,10 +26,10 @@
self.text = new Text2('', {
size: 100,
fill: "#ffffff"
});
- self.text.anchor.set(0.5, 0);
- game.addChild(self.text);
+ self.text.anchor.set(0.5, 0.5);
+ self.addChild(self.text);
self.setText = function (text) {
self.text.setText(text);
};
});
@@ -58,9 +58,9 @@
// Create shape and text objects
var shape = new Shape();
shape.x = 2048 / 2;
shape.y = 2732 / 3;
-game.addChild(shape);
+game.addChildAt(shape, 0);
var shapeText = new ShapeText();
shape.addChild(shapeText);
// Function to update the shape and text
function updateShapeAndText() {