This commit is contained in:
cha0s 2021-03-20 02:27:14 -05:00
parent ad87c6f499
commit 2ce7c6e94d
4 changed files with 830 additions and 800 deletions

View File

@ -1,5 +1,5 @@
- Melee
- Change rooms
- x Change rooms
- Dialog UI
- Chat
- Trade/DnD

View File

@ -22,6 +22,7 @@
"test.js.map"
],
"dependencies": {
"@avocado/math": "^2.0.0",
"@avocado/resource": "^2.0.0",
"@avocado/s13n": "^2.0.0",
"@avocado/timing": "^2.0.0",

View File

@ -60,7 +60,8 @@ export default (latus) => class Universe extends JsonResource {
}),
);
const room = this.room('players/cha0s/index.room.json');
const seed = Date.now();
// const seed = Date.now();
const seed = 69420;
noiseSeed(seed);
const tiles = {
water: [103, 104],
@ -118,7 +119,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], Vector.scale([x, y], 16)),
[Math.random() * 8 - 4, Math.random() * 8 - 4],
)));
room.addEntityToLayer(shrub, 1);
// room.addEntityToLayer(shrub, 1);
}
else if (v < 0.17) {
// eslint-disable-next-line no-await-in-loop
@ -130,7 +131,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], p),
[Math.random() * 8 - 4, Math.random() * 8 - 4],
)));
room.addEntityToLayer(tree, 1);
// room.addEntityToLayer(tree, 1);
}
v = (1 + noise(Vector.scale([x, y], 9), seed + 1)) / 2;
if (v < 0.08) {
@ -140,7 +141,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], Vector.scale([x, y], 16)),
[Math.random() * 8 - 4, Math.random() * 8 - 4],
)));
room.addEntityToLayer(flower, 1);
// room.addEntityToLayer(flower, 1);
}
}

File diff suppressed because it is too large Load Diff