custom mode UI improvements
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user