Fix bugs and add improvements
This commit is contained in:
parent
555be9d602
commit
ba4dd5c470
10 changed files with 26 additions and 21 deletions
|
|
@ -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),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,5 @@ export class Player extends CommandReceiver {
|
|||
this.isActive = false;
|
||||
freeColor(this.character.colorIndex);
|
||||
this.character.destroy();
|
||||
this.objects.removeObject(this.character);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue