User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.audio.play')' in or related to this line: 'LK.audio.play('shootSound'); // Play shoot sound effect' Line Number: 67
User prompt
Make a shoot sound effect after the hero shoots a bullet
User prompt
The boss enemy doesn’t move can you fix it?
User prompt
The boss enemy is spawning on wave one can you fix it..
User prompt
Make a boss enemy spawn every 5 waves
User prompt
Sometimes the color selector makes you click it multiple times before changing the color of the hero can you fix it
User prompt
Make text that says what color your hero is
User prompt
The color selector Dosnt work
User prompt
Fix Bug: 'Script error.' in or related to this line: 'var colorSelector = game.addChild(new ColorSelector());' Line Number: 233
User prompt
Make arrows for the player to chose the color of the hero
User prompt
Make a color selector for the player to choose the color of the hero
User prompt
Make stars in the background
User prompt
Spawn a Boss 2.0 at wave 20 and 30 and 25
User prompt
Make a boss 2.0
User prompt
Fix Bug: 'ReferenceError: Can't find variable: stars' in or related to this line: 'for (var i = 0; i < stars.length; i++) {' Line Number: 202
User prompt
Fix Bug: 'ReferenceError: Can't find variable: stars' in or related to this line: 'for (var i = 0; i < stars.length; i++) {' Line Number: 202
User prompt
Spawn a random number of weak enemys from 1-6
User prompt
Start the wave counter at 1
User prompt
Spawn a random amount of enemys and weak enemys from 1-3
User prompt
Start the wave counter at wave 0
User prompt
Start the wave counter at 0
User prompt
Spawn 4 weak enemys and 1 enemy
User prompt
On wave 1 spawn 4 weak enemy and one enemy
User prompt
Make a weak enemy asset
User prompt
Why do some of the enemys have 1 health?
===================================================================
--- original.js
+++ change.js
@@ -140,9 +140,9 @@
};
});
var WaveManager = Container.expand(function () {
var self = Container.call(this);
- self.waveCount = 0;
+ self.waveCount = -1;
self.enemiesPerWave = self.waveCount === 0 ? 6 : 5;
self.enemies = [];
self.createWave = function () {
if (self.waveCount === 8) {
@@ -181,9 +181,9 @@
}
}
}
self.waveCount++;
- waveCounterTxt.setText('Wave: ' + (self.waveCount + 1));
+ waveCounterTxt.setText('Wave: ' + self.waveCount);
};
});
// Define the Block class
var Block = Container.expand(function () {
@@ -220,9 +220,9 @@
/****
* Game Code
****/
var waveManager = game.addChild(new WaveManager());
-var waveCounterTxt = new Text2('Wave: 0', {
+var waveCounterTxt = new Text2('Wave: 1', {
size: 100,
fill: "#ffffff"
});
LK.gui.top.addChild(waveCounterTxt);