User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting '0')' in or related to this line: 'tileArray[i][j] = tile;' Line Number: 209
User prompt
Fix Bug: 'ReferenceError: tileArray is not defined' in or related to this line: 'var newBBall = new BBall(tileArray[0][0].x, tileArray[0][0].y - 150, 180, 180);' Line Number: 71
User prompt
When ball reaches bottom the sapwn new ball and trigger move. keep original ball initialization
User prompt
When ball reaches bottom the sapwn new ball and trigger move
User prompt
For ball control trigger when player first moves Zbert
User prompt
Seperate Zbert movement control from ball movement control so both work independantly
Code edit (1 edits merged)
Please save this source code
User prompt
In the BBall class add a loop that moves the ball randomly downR or Dleft, tile by tile, jumping as it does until it falls off grid
User prompt
run ball jumproutine when ball moves
User prompt
create loop in BBalll to move ball downRight until it falls off grid
User prompt
in BBall, add in code that moves the ball down the grid in a random manner by feeding commands to DownL and DownR controls until the ball falls off the grid
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in or related to this line: 'var bball = new BBall(tileArray[0][0].x, tileArray[0][0].y - 150, 180, 180);' Line Number: 271
User prompt
optimize code
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'move')' in or related to this line: 'bball.move();' Line Number: 278
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'move')' in or related to this line: 'bball.move();' Line Number: 276
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'move')' in or related to this line: 'bball.move();' Line Number: 274
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading '0')' in or related to this line: 'var bball = new BBall(this.tileArray[0][0].x, this.tileArray[0][0].y - 150, 180, 180);' Line Number: 268
User prompt
in game code run BBall between every 30 to 80 seconds
User prompt
Add in tick to BBall to move ball until it falls off edge
User prompt
Add in tick to run BBall movement until ball falls off edge
User prompt
In BBalll classe create a random movement control that will move the ball down the grid (downL and downR directions only). Simulate movement as per direction contol with ball bouncing but remove tileflip
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in or related to this line: 'var bball = new BBall(tileArray[0][0].x, tileArray[0][0].y - 150, 180, 180);' Line Number: 271
User prompt
change order so that tiles are created before bball is added
===================================================================
--- original.js
+++ change.js
@@ -268,10 +268,12 @@
if (this.tileArray && this.tileArray.length > 0 && this.tileArray[0].length > 0) {
var bball = new BBall(this.tileArray[0][0].x, this.tileArray[0][0].y - 150, 180, 180);
if (bball) {
if (bball) {
- this.addChild(bball);
- bball.move();
+ if (bball) {
+ this.addChild(bball);
+ bball.move();
+ }
}
}
}
this.addChild(bball);
beautiful landscape. starry sky, pastel colours, high definition, alien world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A little cube person. 2 legs. back to viewer. facing 45 degrees to the right. multicoloured skin, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle. metallic. light bevel on edge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Round furry, cute alien ball with big eyes. vivid colours, looking at 45 degrees to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bright 3d present with bow, vivd colours. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Change to be vivid multicoloured cube
A simple Triangle, flat shaded, bevelled edges. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Speech bubble with expletive word in it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
parachute. multicoloured. cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a single thin black border. flat shade. simple graphic. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
small star shape, vivid metallic blue, varying length spikes on star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.