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
@@ -114,8 +114,16 @@
self.speed = 4; // Different speed for Enemy2
self.hitpoints = 5; // Different hitpoints for Enemy2
self.update = function () {
self.y += self.speed;
+ // Logic to increase and decrease size
+ if (LK.ticks % 120 < 60) {
+ self.scale.x += 0.002;
+ self.scale.y += 0.002;
+ } else {
+ self.scale.x -= 0.002;
+ self.scale.y -= 0.002;
+ }
self.x += Math.sin(LK.ticks / 30) * 5; // Add sideways movement
self.y += Math.sin(LK.ticks / 15) * 2; // Add soft bouncy movement
if (self.y > 2732) {
self.destroy();
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.