custom mode UI improvements

This commit is contained in:
landgreen
2020-01-12 18:19:14 -08:00
parent 2e14106d48
commit a4a2a83412
3 changed files with 35 additions and 22 deletions

View File

@@ -940,7 +940,7 @@ const spawn = {
me.leaveBody = false;
// me.dropPowerUp = false;
me.onDeath = function () { //run this function on death
for (let i = 0; i < Math.ceil(this.mass * 0.2 + Math.random() * 3); ++i) {
for (let i = 0; i < Math.ceil(this.mass * 0.15 + Math.random() * 2.5); ++i) {
spawn.spawns(this.position.x + (Math.random() - 0.5) * radius * 2.5, this.position.y + (Math.random() - 0.5) * radius * 2.5);
Matter.Body.setVelocity(mob[mob.length - 1], {
x: this.velocity.x + (Math.random() - 0.5) * 15,