initial commit
This commit is contained in:
132
node_modules/jibo-tools/templates/behavior-template/behaviors/idle.bt
generated
vendored
Normal file
132
node_modules/jibo-tools/templates/behavior-template/behaviors/idle.bt
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"3": {
|
||||
"id": 3,
|
||||
"class": "Parallel",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"args": [
|
||||
false
|
||||
],
|
||||
"children": [
|
||||
19,
|
||||
16
|
||||
],
|
||||
"decorators": []
|
||||
},
|
||||
"16": {
|
||||
"id": 16,
|
||||
"class": "Sequence",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"parent": 3,
|
||||
"args": [],
|
||||
"children": [
|
||||
18,
|
||||
17
|
||||
],
|
||||
"decorators": [
|
||||
23
|
||||
]
|
||||
},
|
||||
"17": {
|
||||
"id": 17,
|
||||
"class": "LookAt",
|
||||
"name": "Choose place to look",
|
||||
"asset-pack": "core",
|
||||
"parent": 16,
|
||||
"args": [
|
||||
[
|
||||
"() => {",
|
||||
"\tlet x = 1;",
|
||||
"\tlet y = (1 - 2 * Math.random());",
|
||||
"\tlet z = 0.7 + 0.5 * (1 - 2 * Math.random());",
|
||||
"\treturn {x: x, y: y, z: z};",
|
||||
"}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"18": {
|
||||
"id": 18,
|
||||
"class": "TimeoutJs",
|
||||
"asset-pack": "core",
|
||||
"parent": 16,
|
||||
"args": [
|
||||
[
|
||||
"() => {",
|
||||
" return 1000 + 2000 * Math.random();",
|
||||
"}"
|
||||
]
|
||||
],
|
||||
"name": "Pause for a bit"
|
||||
},
|
||||
"19": {
|
||||
"id": 19,
|
||||
"class": "Sequence",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"parent": 3,
|
||||
"args": [],
|
||||
"children": [
|
||||
21,
|
||||
20
|
||||
],
|
||||
"decorators": [
|
||||
22
|
||||
]
|
||||
},
|
||||
"20": {
|
||||
"id": 20,
|
||||
"class": "Blink",
|
||||
"asset-pack": "core",
|
||||
"parent": 19,
|
||||
"args": []
|
||||
},
|
||||
"21": {
|
||||
"id": 21,
|
||||
"class": "TimeoutJs",
|
||||
"name": "Pause for a bit",
|
||||
"asset-pack": "core",
|
||||
"parent": 19,
|
||||
"args": [
|
||||
[
|
||||
"() => {",
|
||||
" return 2000 + 2500 * Math.random();",
|
||||
"}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"22": {
|
||||
"id": 22,
|
||||
"class": "WhileCondition",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"args": [
|
||||
[
|
||||
"() => {",
|
||||
"}"
|
||||
],
|
||||
[
|
||||
"() => {",
|
||||
" return true;",
|
||||
"}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"23": {
|
||||
"id": 23,
|
||||
"class": "WhileCondition",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"args": [
|
||||
[
|
||||
"() => {",
|
||||
"}"
|
||||
],
|
||||
[
|
||||
"() => {",
|
||||
" return true;",
|
||||
"}"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
49
node_modules/jibo-tools/templates/behavior-template/behaviors/main.bt
generated
vendored
Normal file
49
node_modules/jibo-tools/templates/behavior-template/behaviors/main.bt
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"1": {
|
||||
"id": 1,
|
||||
"class": "Sequence",
|
||||
"name": "",
|
||||
"asset-pack": "core",
|
||||
"args": [],
|
||||
"children": [
|
||||
8,
|
||||
4,
|
||||
6
|
||||
],
|
||||
"decorators": []
|
||||
},
|
||||
"4": {
|
||||
"id": 4,
|
||||
"class": "PlayAnimation",
|
||||
"name": "Play a greeting",
|
||||
"asset-pack": "core",
|
||||
"parent": 1,
|
||||
"args": [
|
||||
"greeting.keys",
|
||||
[
|
||||
"(animation) => {",
|
||||
"}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"id": 6,
|
||||
"class": "PlayAudio",
|
||||
"name": "Bawhoop",
|
||||
"asset-pack": "core",
|
||||
"parent": 1,
|
||||
"args": [
|
||||
"FX_Bawhoop.mp3"
|
||||
]
|
||||
},
|
||||
"8": {
|
||||
"id": 8,
|
||||
"class": "DebugBehavior",
|
||||
"name": "Hello World",
|
||||
"asset-pack": "project",
|
||||
"parent": 1,
|
||||
"args": [
|
||||
"Hello World"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user