76 lines
1.6 KiB
JavaScript
76 lines
1.6 KiB
JavaScript
import {buildInvoke, buildTraversal} from '@avocado/behavior';
|
|
|
|
// A tomato plant.
|
|
export function tomatoPlantJSON() {
|
|
return {
|
|
traits: {
|
|
existent: {
|
|
state: {
|
|
name: 'Tomato plant',
|
|
},
|
|
},
|
|
layered: {},
|
|
listed: {},
|
|
pictured: {
|
|
params: {
|
|
images: {
|
|
'initial': {
|
|
offset: [0, 0],
|
|
size: [16, 16],
|
|
uri: '/tomato-stage-0.png',
|
|
},
|
|
'stage-1': {
|
|
offset: [0, 3],
|
|
size: [16, 16],
|
|
uri: '/tomato-stage-1.png',
|
|
},
|
|
'stage-2': {
|
|
offset: [0, 3],
|
|
size: [16, 16],
|
|
uri: '/tomato-stage-2.png',
|
|
},
|
|
'stage-3': {
|
|
offset: [0, 3],
|
|
size: [16, 16],
|
|
uri: '/tomato-stage-3.png',
|
|
},
|
|
'stage-4': {
|
|
offset: [0, 3],
|
|
size: [16, 16],
|
|
uri: '/tomato-stage-4.png',
|
|
},
|
|
}
|
|
},
|
|
},
|
|
plant: {
|
|
params: {
|
|
stageSpecs: {
|
|
0: {
|
|
growAt: 2,
|
|
image: 'initial',
|
|
},
|
|
1: {
|
|
growAt: 4,
|
|
image: 'stage-1',
|
|
},
|
|
2: {
|
|
growAt: 6,
|
|
image: 'stage-2',
|
|
},
|
|
3: {
|
|
growAt: 8,
|
|
image: 'stage-3',
|
|
},
|
|
4: {
|
|
image: 'stage-4',
|
|
},
|
|
}
|
|
}
|
|
},
|
|
positioned: {},
|
|
roomed: {},
|
|
visible: {},
|
|
},
|
|
};
|
|
}
|