refactor: paths
This commit is contained in:
parent
2ed4eed036
commit
7a94e36df4
|
@ -172,7 +172,7 @@ export default (latus) => class Receptacle extends decorate(Trait) {
|
||||||
return {
|
return {
|
||||||
sounds: () => ({
|
sounds: () => ({
|
||||||
yoink: {
|
yoink: {
|
||||||
extends: '/yoink.sound.json',
|
extends: '/item/yoink.sound.json',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
|
@ -82,7 +82,7 @@ export default async (room, latus) => {
|
||||||
v = noise(Vector.scale([x, y], 15), seed + 1);
|
v = noise(Vector.scale([x, y], 15), seed + 1);
|
||||||
if (v < 0.15) {
|
if (v < 0.15) {
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
const shrub = await Entity.load({extends: '/shrub.entity.json'});
|
const shrub = await Entity.load({extends: '/ambient/shrub.entity.json'});
|
||||||
shrub.setPosition(Vector.round(Vector.add(
|
shrub.setPosition(Vector.round(Vector.add(
|
||||||
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
||||||
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
||||||
|
@ -91,7 +91,7 @@ export default async (room, latus) => {
|
||||||
}
|
}
|
||||||
else if (v < 0.17) {
|
else if (v < 0.17) {
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
const tree = await Entity.load({extends: '/tree.entity.json'});
|
const tree = await Entity.load({extends: '/ambient/tree.entity.json'});
|
||||||
let p = [x, y];
|
let p = [x, y];
|
||||||
p = Vector.sub(p, Vector.mod(p, [2, 2]));
|
p = Vector.sub(p, Vector.mod(p, [2, 2]));
|
||||||
p = Vector.scale(p, 16);
|
p = Vector.scale(p, 16);
|
||||||
|
@ -104,7 +104,7 @@ export default async (room, latus) => {
|
||||||
v = noise(Vector.scale([x, y], 9), seed + 1);
|
v = noise(Vector.scale([x, y], 9), seed + 1);
|
||||||
if (v < 0.08) {
|
if (v < 0.08) {
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
const flower = await Entity.load({extends: '/flower.entity.json'});
|
const flower = await Entity.load({extends: '/ambient/flower.entity.json'});
|
||||||
flower.setPosition(Vector.round(Vector.add(
|
flower.setPosition(Vector.round(Vector.add(
|
||||||
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
||||||
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user