foam charges

apomixis spawns 8 bosses (up from 4)

foam gun now charges up until you release the fire button
This commit is contained in:
landgreen
2021-04-23 20:45:26 -07:00
parent 29dee3536f
commit c7c025244e
8 changed files with 122 additions and 92 deletions

View File

@@ -250,10 +250,9 @@ const simulation = {
ctx.fillStyle = simulation.drawList[i].color;
ctx.fill();
if (simulation.drawList[i].time) {
//remove when timer runs out
simulation.drawList[i].time--;
} else {
simulation.drawList.splice(i, 1);
if (!m.isBodiesAsleep) simulation.drawList.splice(i, 1); //remove when timer runs out
}
}
},