Code edit (1 edits merged)
Please save this source code
User prompt
start zebert falling animation 80 lower on y
User prompt
for detection of intersect with Zbert for Alien and ball minus 150 on Y axis to compensate for Zberts offset
User prompt
add in collision detection between the Alien and zbert
Code edit (1 edits merged)
Please save this source code
User prompt
When zbert is hit make sure balls and aliens are cleared from screen
User prompt
when zebert gets hit stop stop Ball, alien and zberts movement so only one hit is registered
User prompt
if alien intersects with zbert then treat as ball interaction with zbert
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'completedLevels')' in or related to this line: 'var maxAliens = levelManager.completedLevels >= 3 ? 2 : 1;' Line Number: 639
User prompt
When level reaches 4 increase alien number to 2
User prompt
change respawn code so Aliens spawn from middle of grid
User prompt
Spawn Aliens form middle of grid
User prompt
modify Alien code so that they can move around tiles in any direction
User prompt
Correct Alien code so that Alien moves from spawn point on row 7 left across tiles to the right using up and down
User prompt
Fix Bug: 'Timeout.tick error: spawnBBall is not defined' in or related to this line: 'spawnBBall();' Line Number: 771
User prompt
Fix Bug: 'Timeout.tick error: maxAliens is not defined' in or related to this line: 'if (alienCount < maxAliens) {' Line Number: 709
User prompt
Add Alien to game as per ball code
User prompt
for alien change code so that the alien travels bounces across screen on tiles from left to right
Code edit (2 edits merged)
Please save this source code
User prompt
Add a new class called alien. This will be based upon the BBall class. do not remove or replace BBall class!
User prompt
Fix Bug: 'bball.move is not a function' in or related to this line: 'bball.move();' Line Number: 627
User prompt
Fix Bug: 'bball.move is not a function' in or related to this line: 'bball.move();' Line Number: 627
User prompt
Fix Bug: 'ReferenceError: BBall is not defined' in or related to this line: 'return child instanceof BBall;' Line Number: 636
User prompt
duplicate BBall code and interactions and name duplicate Alien. Alien will travel from left to right acroos grid jumping up and down on the tiles
===================================================================
--- original.js
+++ change.js
@@ -706,14 +706,14 @@
return child instanceof Alien;
});
if (zbert && (bball || alien)) {
var zbertCenter = {
- x: zbert.x + (zbert.parent.gridY >= 1 && zbert.parent.gridY <= 6 ? zbert.width / 2 - 50 : zbert.width / 2),
+ x: zbert.x + (zbert.parent.gridY >= 1 && zbert.parent.gridY <= 6 ? zbert.width / 2 - 100 : zbert.width / 2),
y: zbert.y + zbert.height / 2
};
var otherEntity = bball || alien;
var otherEntityCenter = {
- x: otherEntity.x + (otherEntity.parent.gridY >= 1 && otherEntity.parent.gridY <= 6 ? otherEntity.width / 2 - 50 : otherEntity.width / 2),
+ x: otherEntity.x + (otherEntity.parent.gridY >= 1 && otherEntity.parent.gridY <= 6 ? otherEntity.width / 2 - 100 : otherEntity.width / 2),
y: otherEntity.y + otherEntity.height / 2
};
var dx = zbertCenter.x - otherEntityCenter.x;
var dy = zbertCenter.y - otherEntityCenter.y;
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.