User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(growthTxt);' Line Number: 88
User prompt
Show on screen the percentage of groth of the herobullet. It should update on click
User prompt
Bullet should rotate like hero even when its growing
User prompt
Add listener to also rotate bullet like hero
User prompt
If while down finger moves, hero should rotate
User prompt
Bullet should continue to grow vlback after it is small
User prompt
Bullet cant go smaller than initial size
User prompt
Increase the increase of speed based on bullet size
User prompt
Bullet should already spawn rotated in the hero position
User prompt
Bullet should rotate on down
User prompt
Fix Bug: 'ReferenceError: hero is not defined' in this line: 'self.rotation = hero.rotation;' Line Number: 8
User prompt
Bullet asset should rotate like hero
User prompt
Hero should rotate on down
User prompt
Hero should always rotate to where the finger is touching. Bullet movement will not be afected by this
User prompt
Bullet speed should be faster the bigger the bullet is
User prompt
While holding down, bullet size will continue to grow and go small every 2 second
User prompt
Bullet should decrese size and back to normal once it reaches its max. And continue back to grow when down
User prompt
Bullet should be aimed to where the finger is up
User prompt
Update bullet size increase in tick
User prompt
On hold increase the size of the bullet progressible for 2 seconds
User prompt
On hold increase size of bullet
User prompt
Fix Bug: 'ReferenceError: hero is not defined' in this line: 'self.x += Math.cos(hero.bulletDirection) * self.speed;' Line Number: 6
User prompt
Hero should define bullet dirextio
User prompt
Hero should start aiking upwards
User prompt
Bullet should be shot the direction the hero is looking
===================================================================
--- original.js
+++ change.js
@@ -44,8 +44,9 @@
var holdDuration = LK.ticks - holdTime;
var sizeMultiplier = Math.max(1, 1 + Math.abs(Math.sin(holdDuration / 60)) / 2);
currentBullet.scale.x = sizeMultiplier;
currentBullet.scale.y = sizeMultiplier;
+ currentBullet.rotation = hero.rotation;
}
});
var currentBullet = null;
var holdTime = 0;
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.