Code edit (2 edits merged)
Please save this source code
User prompt
make enemy boss move sideways 20 pixels in a gap of 2 second
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 227
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 227
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 227
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 227
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 227
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'self.bulletGraphics.tint = 0xADD8E6;' Line Number: 227
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 227
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 228
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 229
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 229
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 228
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 229
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 228
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 229
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'this.bulletGraphics.tint = 0xADD8E6;' Line Number: 228
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 57
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xADD8E6;' Line Number: 44
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'currentBullet.bulletGraphics.tint = 0xADD8E6;' Line Number: 228
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
on tick check herobullets size. if size is larger than 200% its original size, then change the herobullet color to orange.
===================================================================
--- original.js
+++ change.js
@@ -17,16 +17,8 @@
self.lifebar.scale.x = self.life / 500;
if (self.life <= 0) {
self.destroy();
}
- if (!self.sidewaysMovementInitialized) {
- self.sidewaysMovementInitialized = true;
- self.sidewaysDirection = 1;
- LK.setInterval(function () {
- self.x += 20 * self.sidewaysDirection;
- self.sidewaysDirection *= -1;
- }, 2000);
- }
};
self.shoot = function () {};
self.on('tick', function () {
self.move();
@@ -163,9 +155,8 @@
var Game = Container.expand(function () {
var self = Container.call(this);
var enemies = [];
var enemiesSpawnedCount = 0;
- var particles = [];
var background = self.addChild(new Background());
background.alpha = 0.3;
self.spawnEnemy = function () {
var enemy;
Goku arms doing kamehameha. seen from above. 8-bit. Cartoon. In game asset. No shadow Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. Cartoon. Orange energy ball. . In game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rotate image 45 degrees
8-bit. cartoon. white energy ball. gradieint. transparent. in game asset. flicker. shoot. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. front view. flying final boss. white. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.