User prompt
initial positon for blocks need to be really center in the scree, considering anchors and everything. now it they are a little to the right and not centered.
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'hitpoints')' in or related to this line: 'score += enemies[j].hitpoints * 10;' Line Number: 538
User prompt
each star should add score equat to its hits point by 10
Code edit (7 edits merged)
Please save this source code
User prompt
make diamond icon 20 % smaller
User prompt
move score 100 pixels up
User prompt
remove ram
User prompt
add a small ram on the top of the screen with an overlay behind the score and the icon for the diamond
User prompt
make score a little somaller
Code edit (1 edits merged)
Please save this source code
User prompt
diamondcountertxt has to be in front of dimaaondicon
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'width')' in or related to this line: 'diamondCounterTxt.x = diamondIcon.width / 2 - 200;' Line Number: 370
Code edit (1 edits merged)
Please save this source code
User prompt
diamond icon should be behind the z axis of diamoncoutner text
User prompt
add border to font in diamond coutner
User prompt
make diamond coutner font text black
Code edit (3 edits merged)
Please save this source code
User prompt
make diamond icon transparent
Code edit (1 edits merged)
Please save this source code
User prompt
move diamond counter 200 pixels to the left and 200 down
User prompt
move diamond coutner 200 pixels to the left
User prompt
make diamon icon transparent
User prompt
bring diaamond coutner in front of diamond icon
User prompt
move diamond counter 200 pxels to the left but do not move icon
User prompt
move diaomnd iconn 100 pixels to the right but do not move counter
===================================================================
--- original.js
+++ change.js
@@ -633,18 +633,18 @@
for (var i = 0; i < currentWave.enemies; i++) {
var newBlock = new Enemy();
var row = Math.floor(i / maxEnemiesPerLine);
newBlock.hitpoints = currentWave.hitpoints[row] || currentWave.hitpoints[currentWave.hitpoints.length - 1];
- newBlock.x = i % maxEnemiesPerLine * enemySpacing + enemySpacing / 2;
+ newBlock.x = i % maxEnemiesPerLine * enemySpacing + enemySpacing / 2 - newBlock.width / 2;
newBlock.y = row * 200 - 50;
enemies.push(newBlock);
game.addChild(newBlock);
}
// Center the rows of enemies
var totalWidth = (Math.min(currentWave.enemies, maxEnemiesPerLine) - 1) * enemySpacing;
var offsetX = (2048 - totalWidth) / 2;
for (var j = 0; j < enemies.length; j++) {
- enemies[j].x += offsetX;
+ enemies[j].x += offsetX - enemies[j].width / 2;
}
} else if (waveCount == waveConfig.length + 1) {
// Spawn boss enemy
var boss = new Boss();
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