54 lines
988 B
JavaScript
54 lines
988 B
JavaScript
import {buildInvoke, buildTraversal} from '@avocado/behavior';
|
|
|
|
// Yarn ball.
|
|
export function yarnBallJSON() {
|
|
return {
|
|
traits: {
|
|
collider: {
|
|
params: {
|
|
isSensor: true,
|
|
},
|
|
},
|
|
existent: {
|
|
state: {
|
|
name: 'Yarn Ball',
|
|
},
|
|
},
|
|
item: {
|
|
params: {
|
|
slotImageUris: {
|
|
default: '/yarn-ball.png',
|
|
},
|
|
},
|
|
},
|
|
layered: {},
|
|
listed: {},
|
|
magnetic: {},
|
|
mobile: {},
|
|
pictured: {
|
|
params: {
|
|
images: {
|
|
initial: {
|
|
offset: [0, 0],
|
|
size: [8, 8], // Derive?
|
|
uri: '/yarn-ball.png',
|
|
},
|
|
}
|
|
},
|
|
},
|
|
positioned: {},
|
|
roomed: {},
|
|
shaped: {
|
|
params: {
|
|
shape: {
|
|
type: 'rectangle',
|
|
position: [0, 0],
|
|
size: [16, 16],
|
|
},
|
|
},
|
|
},
|
|
visible: {},
|
|
},
|
|
};
|
|
}
|