User prompt
when you get to -500 you lose the game
User prompt
Add a weapon that is a bomb. When you hit 5 enemies in a row a bomb goes off and clears the board
User prompt
When an enemy crosses the bottom threshold that is minus 5 points. Once I reach 150 points I win the game.
User prompt
Speed robotDogs up and send them in zigzags, also make them worth two points
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in or related to this line: 'if (bullets[k].intersects(robotDogs[n])) {' Line Number: 141
User prompt
Add Robot dogs
Initial prompt
CybWar
===================================================================
--- original.js
+++ change.js
@@ -44,11 +44,16 @@
var robotDogGraphics = self.attachAsset('robotDog', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 7;
+ self.speed = 10;
+ self.direction = 1;
self.update = function () {
self.y += self.speed;
+ self.x += self.direction * 5;
+ if (self.x > 2048 - 75 || self.x < 75) {
+ self.direction *= -1;
+ }
};
});
/****
Large Bullet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Humanoid robots. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Badass marine with a green muscle T-shirt and a red bandana and a big cigar hanging from his mouth. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Rabid Robot Dog. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.