Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: leaderClass is not defined' in or related to this line: 'leaderList.push(spawnPoint.addChild(new LeaderClass({' Line Number: 126
Code edit (7 edits merged)
Please save this source code
User prompt
When spawning a leader, add it to the leaderList
Code edit (2 edits merged)
Please save this source code
User prompt
Add a leaderHat asset to the top of the leaderTroll2 class
User prompt
Rename the leaderHat asset to leaderTrollHat
Code edit (1 edits merged)
Please save this source code
User prompt
To each LeaderTroll
Code edit (2 edits merged)
Please save this source code
User prompt
when the spawnTimer expires, call the global table's spawn function after a random timeout of 0 to LEADER_SPAWN_VAR
Code edit (1 edits merged)
Please save this source code
User prompt
Add a spawn function to the table class which checks if the leaders array is not empty, then randomly pops an item off the array and creates an instance of it
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Add a new global function called handleSpawnTimer, which is called on tick. In the function: decrement the spawnTimer, if the spawnTimer is <= 0 then restart it with the spawnTime value, then multiply the spawnTime by the LEADER_SPAWN_FACTOR
Code edit (15 edits merged)
Please save this source code
User prompt
every tick reduce the countdown by 1, end the game when the countdown reaches 0
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: pox is not defined' in or related to this line: 'particleList.push(foreground.addChild(new HammerParticle({' Line Number: 498
Code edit (1 edits merged)
Please save this source code
Code edit (13 edits merged)
Please save this source code
User prompt
Create 3 empty Containers; background, midground and foreground
Code edit (6 edits merged)
Please save this source code
User prompt
The ImpactParticles that HammerParticles create, should be added to the particleList array
===================================================================
--- original.js
+++ change.js
@@ -85,11 +85,12 @@
function spawn() {
if (leaders.length > 0) {
var leaderIndex = Math.floor(Math.random() * leaders.length);
var pointIndex = Math.floor(Math.random() * indices.length);
- var LeaderClass = leaders.splice(leaderIndex, 1)[0];
+ var leaderClass = leaders.splice(leaderIndex, 1)[0];
var spawnPoint = spawnPoints[indices.splice(pointIndex, 1)[0]];
- leaderList.push(spawnPoint.addChild(new LeaderClass({
+ leaderList.push(spawnPoint.addChild(new leaderClass({
+ className: leaderClass,
index: pointIndex
})));
}
}
logo for a company called "blue lizard entertainment" using a damaged font and frozen elements.
Pixel art of the bam symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of bam comic symbol.
pixel art of pow comic symbol.
pixel art of plastic squeaky hammer.
pixel art of a large, round, red start button.