Fix bugs and add improvements

This commit is contained in:
schmelczerandras 2020-10-13 12:47:25 +02:00
parent 555be9d602
commit ba4dd5c470
10 changed files with 26 additions and 21 deletions

View file

@ -29,15 +29,15 @@ export const createDungeon = (objectContainer: PhysicalContainer) => {
Random.getRandomInRange(0, height),
);
} while (
calculateDistanceField(position) < 600 ||
calculateDistanceField(position) < 800 ||
calculateDistanceField(position) > 2000
);
objects.push(
createBlob(
position,
Random.getRandomInRange(200, 2000),
Random.getRandomInRange(100, 500),
Random.getRandomInRange(300, 800),
Random.getRandomInRange(300, 800),
Random.getRandomInRange(10, 40),
),
);

View file

@ -160,6 +160,5 @@ export class Player extends CommandReceiver {
this.isActive = false;
freeColor(this.character.colorIndex);
this.character.destroy();
this.objects.removeObject(this.character);
}
}