User prompt
on tick check hero bullet size and change tint to pink if size is more than 100 px
User prompt
change the color of the hero bullet it is increasing it size and attached to the hero for over 1 second.
User prompt
if hold duration longer than 1 second, on tick, update herobullet color to orange when not moving.
User prompt
if hold duration longer than 1 second then change color of herobullet to orange.
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: 247
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 247
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 247
User prompt
Fix Bug: 'ReferenceError: bulletGraphics is not defined' in this line: 'bulletGraphics.tint = 0xFFA500;' Line Number: 247
Code edit (1 edits merged)
Please save this source code
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
===================================================================
--- original.js
+++ change.js
@@ -51,14 +51,10 @@
self.x += self.speedX * self.scale.x * self.scale.x;
self.y += self.speedY * self.scale.y * self.scale.y;
self.rotation = hero.rotation + Math.PI / 2;
self.damage = self.scale.x * self.scale.y;
- if (LK.ticks - hero.holdTime > 60) {
- if (LK.ticks - hero.holdTime > 60) {
- this.bulletGraphics.tint = 0xFF0000;
- } else {
- this.bulletGraphics.tint = 0xFFFFFF;
- }
+ if (self.scale.x > 2 && self.scale.y > 2) {
+ this.bulletGraphics.tint = 0xFFA500;
}
if (self.flicker) {
self.alpha += self.flickerSpeed;
if (self.alpha <= self.flickerMinAlpha || self.alpha >= self.flickerMaxAlpha) {
@@ -208,8 +204,11 @@
var sizeMultiplier = Math.max(1, 1 + Math.abs(Math.sin(holdDuration / 60)) * 3);
if (currentBullet.scale.x < sizeMultiplier) {
currentBullet.scale.x = sizeMultiplier;
currentBullet.scale.y = sizeMultiplier;
+ if (currentBullet.bulletGraphics.width * currentBullet.scale.x > 100) {
+ currentBullet.bulletGraphics.tint = 0xFFC0CB;
+ }
}
currentBullet.flicker = true;
var flickerAmount = Math.abs(Math.sin(LK.ticks / 30)) * (currentBullet.flickerMaxAlpha - currentBullet.flickerMinAlpha);
currentBullet.alpha = currentBullet.flickerMinAlpha + flickerAmount;
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.