User prompt
triple GreenPowerup offset
User prompt
make sure the text "boom" is above the background
User prompt
when GreenPowerup is destroyed instantiate the text "boom" on top of it for 2 seconds and then delete the text
User prompt
GreenPowerup spawn every 10 seconds
User prompt
GreenPowerup moves up and down like its floating
User prompt
GreenPowerup spawn position should be near the center of the screen randomly
User prompt
the spawned position of GreenPowerup should be in the center of the screen
User prompt
double the bullet speed
User prompt
i dont see GreenPowerup moving, make it move damnit
User prompt
GreenPowerup floats in a circular motion in the center of the playspace and screen space
User prompt
Fix Bug: 'ReferenceError: Particle is not defined' in this line: 'var particle = new Particle();' Line Number: 50
User prompt
when santa fire projectile spawn particle on santa
User prompt
move all text 10 pixel down and change color to white
User prompt
move all text 4 pixels down and change color to dark red
User prompt
again
User prompt
move all text 2 pixels down
User prompt
ensure GreenPowerup spawns in the middle of the playspace
User prompt
ensure GreenPowerup spawns near the middle of the screen
User prompt
ensure GreenPowerup spawns near the center of the screen
User prompt
only 1 GreenPowerup can be active at a time
User prompt
change spawn timer of GreenPowerup to 1 second
User prompt
GreenPowerup should spawn above the background right now i cant see it
User prompt
GreenPowerup spawns randomly on screen every 10 seconds
User prompt
Fix Bug: 'ReferenceError: greenPowerup is not defined' in this line: 'if (bullet.intersects(enemy)) {' Line Number: 161
User prompt
when projectile collides with greenpowerup delete all ennemy on screen and add points to the score accordingly
===================================================================
--- original.js
+++ change.js
@@ -18,18 +18,8 @@
self.lifeSpan -= 16.6667;
if (self.lifeSpan <= 0) {
LK.setTimeout(function () {
self.destroy();
- var boomText = new Text2('boom', {
- size: 100,
- fill: "#ffffff"
- });
- boomText.x = self.x;
- boomText.y = self.y;
- LK.gui.addChild(boomText);
- LK.setTimeout(function () {
- boomText.destroy();
- }, 2000);
}, 3000);
}
});
});
@@ -208,10 +198,10 @@
}
greenPowerup = new GreenPowerup();
var centerX = 2048 / 2;
var centerY = 2732 / 2;
- var randomOffsetX = (Math.random() - 0.5) * 200;
- var randomOffsetY = (Math.random() - 0.5) * 200;
+ var randomOffsetX = (Math.random() - 0.5) * 600;
+ var randomOffsetY = (Math.random() - 0.5) * 600;
greenPowerup.x = centerX + randomOffsetX - greenPowerup.width / 2;
greenPowerup.y = centerY + randomOffsetY - greenPowerup.height / 2;
greenPowerup.move = function () {
this.angle += 0.05;
a top view of a 16 bit sprite santa with a bazooka Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a christmas ornament Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eyed christmas elf Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a blood splatter Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eye reindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eye mother christmas Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit top view background of a christmas field set in hell Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit smoke Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit wall of skulls with red eyes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
"Death Is Inevitable" Text Bubble Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit CHRISTMAS bomb power up icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.