User prompt
when powerup menu is closed, respawn waves
User prompt
powerup3 should buy a shield
User prompt
add a shiedl to the game. shield will protect the fairy for 1 life
Code edit (1 edits merged)
Please save this source code
User prompt
when powerup3 is selected, add a shield around the fairy. shield will last until it hits an enemy
User prompt
when powerup2 is selected, increase hitpoins of player bullets by 1
User prompt
on game start player should have 1 hit point per bullet
Code edit (1 edits merged)
Please save this source code
User prompt
make sure down even is being watched for powerups
User prompt
console log when powerups are touched
Code edit (2 edits merged)
Please save this source code
User prompt
when player clicks on powerup1 incrase fire rate speed
Code edit (1 edits merged)
Please save this source code
User prompt
move powerup shop 500 pixels to the left
User prompt
still not right. powerup menu should be centered in the screenn
User prompt
powerupshop is still on the right side of the screen. it should be in the center
User prompt
adjust anchor point of powerup menu so that it is centered in the screen
User prompt
fix screengraphics annchor points
User prompt
when powerup is selected close powerup shop
User prompt
Fix powerups not being selected
User prompt
when powerupmenu is up, players should not move
User prompt
Please fix the bug: 'Uncaught TypeError: powerup1.containsPoint is not a function' in or related to this line: 'if (powerup1.containsPoint(localPos) || powerup2.containsPoint(localPos) || powerup3.containsPoint(localPos)) {' Line Number: 323
User prompt
please fix powerup menu
User prompt
Please fix the bug: 'Uncaught TypeError: powerup1.containsPoint is not a function' in or related to this line: 'if (powerup1.containsPoint(localPos) || powerup2.containsPoint(localPos) || powerup3.containsPoint(localPos)) {' Line Number: 323
User prompt
make sure poweups are clickable
===================================================================
--- original.js
+++ change.js
@@ -209,28 +209,28 @@
});
screenGraphics.width = 1024; // Adjust width to half of the screen width
screenGraphics.height = 1366; // Adjust height to half of the screen height
screenGraphics.alpha = 0.8;
- screenGraphics.x = 2048 / 2;
- screenGraphics.y = 2732 / 2;
+ screenGraphics.x = 0;
+ screenGraphics.y = 0;
var title = new Text2('Powerup Shop', {
size: 150,
fill: "#ffffff",
stroke: "#000000",
strokeThickness: 5
});
title.anchor.set(0.5, 0.5);
- title.x = 2048 / 2;
- title.y = 300;
- self.x = 2048 / 2 - self.width / 2;
- self.y = 2732 / 2 - self.height / 2;
+ title.x = 0;
+ title.y = -screenGraphics.height / 2 + 150;
+ self.x = 2048 / 2;
+ self.y = 2732 / 2;
self.addChild(title);
var powerup1 = LK.getAsset('powerup1', {
anchorX: 0.5,
anchorY: 0.5
});
- powerup1.x = 2048 / 2 - 300;
- powerup1.y = 1000;
+ powerup1.x = -300;
+ powerup1.y = 100;
self.addChild(powerup1);
var powerup1DiamondIcon = LK.getAsset('diamond', {
anchorX: 0.5,
anchorY: 0.5,
@@ -253,10 +253,10 @@
var powerup2 = LK.getAsset('powerup2', {
anchorX: 0.5,
anchorY: 0.5
});
- powerup2.x = 2048 / 2;
- powerup2.y = 1000;
+ powerup2.x = 0;
+ powerup2.y = 100;
self.addChild(powerup2);
var powerup2DiamondIcon = LK.getAsset('diamond', {
anchorX: 0.5,
anchorY: 0.5,
@@ -279,10 +279,10 @@
var powerup3 = LK.getAsset('powerup3', {
anchorX: 0.5,
anchorY: 0.5
});
- powerup3.x = 2048 / 2 + 300;
- powerup3.y = 1000;
+ powerup3.x = 300;
+ powerup3.y = 100;
self.addChild(powerup3);
var powerup3DiamondIcon = LK.getAsset('diamond', {
anchorX: 0.5,
anchorY: 0.5,
8-bit. cartoon. white star.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon 8 bit fairy dust. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon, 8bit, fireball. Black border. Cicular.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon, 8 bit, shield. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8bit, cartoon, axe. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
dark electric ball, 8bit, cartoon.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8bit, cartoon, treasure chest frame. very big empty center. only a fine border of chest. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
shoot
Sound effect
boom
Sound effect
Hit
Sound effect
backgroundmusic
Sound effect
bossbullet
Sound effect
bossappear
Sound effect
hit
Sound effect
diamondcollect
Sound effect
hooray
Sound effect
nono
Sound effect
letsgo
Sound effect
death
Sound effect
yes
Sound effect