User prompt
enemy2 should increase and decrease its size lightly
User prompt
after boss is destroyed, show a powerup screen offering the player to buy powerups with diamons
User prompt
enemy2 shoudl spawn 5 seconds after each wave
Code edit (1 edits merged)
Please save this source code
User prompt
separate the bullets into herobullets and bossbullets
User prompt
remove collision detection between boss and bossbullet
User prompt
make sure bossbullest do not collide with boss
User prompt
bossbullets should not hit boss, only fairy
User prompt
use bossbullet asset
User prompt
boss shoudl shoot bullets downwards regularly
User prompt
boss should spawn after wave is offscreen or destroyed
User prompt
when boss is on screen, waves should not spawn
Code edit (2 edits merged)
Please save this source code
User prompt
remove tint from boss
User prompt
when last waves is spawned, spawn boss.boss will moveon the top 40% of the screen and shoot bullets
User prompt
add soft bouncy movement and sideways movementn to enemy2
Code edit (1 edits merged)
Please save this source code
User prompt
use enemy2 asseet for enemy2 instead of block
User prompt
after a wave is spawned spawn enemy2
User prompt
spawn enemy2 between waves
User prompt
create a levels structure to the game. add a configuration setting to define how many waves each level will have.
User prompt
make sure enemy ewaves still work even if enemy2 is coming
User prompt
between enemies waves, spawn enemy2 which will have a jumpy movement towards fairy
User prompt
do not respawn waves once complete
User prompt
build a level structure in the game. each level will have a defined number of waves, enemy2 and a boss.
===================================================================
--- original.js
+++ change.js
@@ -468,9 +468,9 @@
}
}
for (var k = bullets.length - 1; k >= 0; k--) {
for (var l = enemies.length - 1; l >= 0; l--) {
- if (bullets[k].intersects(enemies[l]) && !(enemies[l] instanceof Boss)) {
+ if (bullets[k].intersects(enemies[l]) && !(enemies[l] instanceof Boss) && !(bullets[k].assetId === 'bossbullet' && enemies[l] instanceof Boss)) {
bullets[k].destroy();
bullets.splice(k, 1);
enemies[l].hitpoints--;
if (enemies[l].hitpoints <= 0) {
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