User prompt
In ring type should be set to the random value used to select color
User prompt
in Ring, rename the constructor argument type to size
User prompt
Your setting type twice in ring, delete the first one
User prompt
In ring type should be set to the random value used to select color
Code edit (1 edits merged)
Please save this source code
User prompt
Use a 2D array to track stacks
User prompt
In game, in tick, if a stack returns true on check rings, destroy and remove the stack
User prompt
Add a method on stack that returns true if the stack has 5 rings of the same type
User prompt
Don’t allow rings to be moved if the target stack already have 5 rings attached to it
User prompt
When clicking one stack, then another stack, move the top ring from the first stack to the second stack clicked
User prompt
In remove ring don’t destroy the ring, return it instead
User prompt
In game Add logic that allows a ring be moved from one stack to another
User prompt
In ring rename i to type and expose it as a property
User prompt
Rings should have a type property
User prompt
Don’t add rings to the middle stack
User prompt
Don’t subtract 5 from ring y
User prompt
Move down stack container by 250px
User prompt
Move down stack container by 250px
User prompt
Use 79 rather than 39 in stack container x
User prompt
Use 368 rather than 358 in container x and y
User prompt
Add 39 to container x
User prompt
Add 109 to stack container x
User prompt
Update 230 to 358 in ring y code
User prompt
Reset stack container x and y to 358/2
User prompt
5x5
===================================================================
--- original.js
+++ change.js
@@ -26,9 +26,9 @@
var Game = Container.expand(function () {
var self = Container.call(this);
self.stacks = [];
var stackContainer = self.addChild(new Container());
- stackContainer.x = 358 / 2 + 109;
+ stackContainer.x = 358 / 2 + 39;
stackContainer.y = 358 / 2;
for (var row = 0; row < 5; row++) {
for (var col = 0; col < 5; col++) {
var stack = stackContainer.addChild(new Stack());
Amazing games background for wooden children’s rainbow stacking tower game.
Horizontal wooden rod. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Narrow Horizontal rod. Light wood Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.