mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
添加demo
This commit is contained in:
30
bt-demo/.gitignore
vendored
Normal file
30
bt-demo/.gitignore
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
|
||||||
|
#///////////////////////////
|
||||||
|
# Cocos Creator 3D Project
|
||||||
|
#///////////////////////////
|
||||||
|
library/
|
||||||
|
temp/
|
||||||
|
local/
|
||||||
|
build/
|
||||||
|
profiles/
|
||||||
|
extensions/
|
||||||
|
publish/
|
||||||
|
#//////////////////////////
|
||||||
|
# NPM
|
||||||
|
#//////////////////////////
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
#//////////////////////////
|
||||||
|
# VSCode
|
||||||
|
#//////////////////////////
|
||||||
|
.vscode/
|
||||||
|
.creator/
|
||||||
|
|
||||||
|
#//////////////////////////
|
||||||
|
# WebStorm
|
||||||
|
#//////////////////////////
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
package-lock.json
|
||||||
|
|
||||||
|
**/.DS_Store
|
||||||
10
bt-demo/README.md
Normal file
10
bt-demo/README.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# 项目说明
|
||||||
|
|
||||||
|
clone项目后,到项目根目录,执行以下命令,安装项目依赖库
|
||||||
|
```bash
|
||||||
|
npm i
|
||||||
|
```
|
||||||
|
|
||||||
|
重新用creator打开项目
|
||||||
|
|
||||||
|
本项目使用的creator版本为3.8.6
|
||||||
14
bt-demo/assets/resources.meta
Normal file
14
bt-demo/assets/resources.meta
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "9d91ce52-ffe8-43c0-a118-9ace6bd9cf45",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"isBundle": true,
|
||||||
|
"bundleConfigID": "default",
|
||||||
|
"bundleName": "resources",
|
||||||
|
"priority": 8
|
||||||
|
}
|
||||||
|
}
|
||||||
9
bt-demo/assets/resources/config.meta
Normal file
9
bt-demo/assets/resources/config.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "1ea023b5-0ab6-4613-b157-3098b11c379b",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
169
bt-demo/assets/resources/config/bt_config.json
Normal file
169
bt-demo/assets/resources/config/bt_config.json
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
{
|
||||||
|
"bt-tree1": [
|
||||||
|
{
|
||||||
|
"id": "1759472794685_3awlwerqg",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1759472800995_k3q8rx02h",
|
||||||
|
"1759472799864_nait7thja",
|
||||||
|
"1759472798713_ay9jxznr4",
|
||||||
|
"1759472797759_gu3y8p1um"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472797759_gu3y8p1um",
|
||||||
|
"className": "Inverter",
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472798713_ay9jxznr4",
|
||||||
|
"className": "LimitTime",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472799864_nait7thja",
|
||||||
|
"className": "LimitTicks",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472800995_k3q8rx02h",
|
||||||
|
"className": "Repeat",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bt-tree2": [
|
||||||
|
{
|
||||||
|
"id": "1757930589538_qisfksbwz",
|
||||||
|
"className": "MemSequence",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005578560_0b1kuefo0",
|
||||||
|
"node_1757926547913_xilg11ei7",
|
||||||
|
"1757931183149_eeuq44vs0"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926547913_xilg11ei7",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"node_1757926550855_1hqcmi43w",
|
||||||
|
"node_1757926555912_18vbde5fp",
|
||||||
|
"1757930584200_cf9rez1qg",
|
||||||
|
"1757931171553_a3afal936"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926550855_1hqcmi43w",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 2
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926555912_18vbde5fp",
|
||||||
|
"className": "WaitTime",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757930584200_cf9rez1qg",
|
||||||
|
"className": "Inverter",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1757930606484_dbsf9bsu2"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757930606484_dbsf9bsu2",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 0
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757931171553_a3afal936",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 0
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757931183149_eeuq44vs0",
|
||||||
|
"className": "LimitTicks",
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005570308_u6yo43u3b",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005574101_v4xhs2jo8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005572265_dl9lxnrki",
|
||||||
|
"className": "MemSequence",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005575213_obgfw5q7p"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005574101_v4xhs2jo8",
|
||||||
|
"className": "Selector",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005576340_c8xf5bdhp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005575213_obgfw5q7p",
|
||||||
|
"className": "RandomSelector",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005577367_tw24xyxop"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005576340_c8xf5bdhp",
|
||||||
|
"className": "Sequence",
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005577367_tw24xyxop",
|
||||||
|
"className": "Parallel",
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005578560_0b1kuefo0",
|
||||||
|
"className": "ParallelAnySuccess",
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005570308_u6yo43u3b",
|
||||||
|
"1758005572265_dl9lxnrki"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
11
bt-demo/assets/resources/config/bt_config.json.meta
Normal file
11
bt-demo/assets/resources/config/bt_config.json.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.1",
|
||||||
|
"importer": "json",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "c8aeef5d-6d0e-4093-848e-7d8f1ca30261",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
9
bt-demo/assets/scene.meta
Normal file
9
bt-demo/assets/scene.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "6f3166a3-36ba-4512-bae8-889c2a7d7d98",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
687
bt-demo/assets/scene/GameEntry.scene
Normal file
687
bt-demo/assets/scene/GameEntry.scene
Normal file
@@ -0,0 +1,687 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"__type__": "cc.SceneAsset",
|
||||||
|
"_name": "GameEntry",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_native": "",
|
||||||
|
"scene": {
|
||||||
|
"__id__": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Scene",
|
||||||
|
"_name": "GameEntry",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": null,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"__id__": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [],
|
||||||
|
"_prefab": {
|
||||||
|
"__id__": 15
|
||||||
|
},
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"autoReleaseAssets": false,
|
||||||
|
"_globals": {
|
||||||
|
"__id__": 16
|
||||||
|
},
|
||||||
|
"_id": "bef93422-3e63-4c0f-a5cf-d926e7360673"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "Canvas",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"__id__": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 12
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 13
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 14
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_prefab": null,
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 375,
|
||||||
|
"y": 667,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_id": "beI88Z2HpFELqR4T5EMHpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "Camera",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"__id__": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 7
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 11
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_prefab": null,
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 1000
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_id": "ebFwiq8gBFaYpqYbdoDODe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "touch",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 3
|
||||||
|
},
|
||||||
|
"_children": [],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_prefab": null,
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1000
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_id": "77ynXZOUlAmZhaA9QBApfI"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.UITransform",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 4
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_contentSize": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 750,
|
||||||
|
"height": 1334
|
||||||
|
},
|
||||||
|
"_anchorPoint": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0.5
|
||||||
|
},
|
||||||
|
"_id": "44ewOBJMBKwauq6v9Ikv2U"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Widget",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 4
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_alignFlags": 18,
|
||||||
|
"_target": null,
|
||||||
|
"_left": 0,
|
||||||
|
"_right": 0,
|
||||||
|
"_top": 1.1368683772161603e-13,
|
||||||
|
"_bottom": 1.1368683772161603e-13,
|
||||||
|
"_horizontalCenter": 0,
|
||||||
|
"_verticalCenter": 0,
|
||||||
|
"_isAbsLeft": true,
|
||||||
|
"_isAbsRight": true,
|
||||||
|
"_isAbsTop": true,
|
||||||
|
"_isAbsBottom": true,
|
||||||
|
"_isAbsHorizontalCenter": true,
|
||||||
|
"_isAbsVerticalCenter": true,
|
||||||
|
"_originalWidth": 750,
|
||||||
|
"_originalHeight": 1334,
|
||||||
|
"_alignMode": 2,
|
||||||
|
"_lockFlags": 18,
|
||||||
|
"_id": "81c6EXUVxA0IMliXVVpGt0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "stage",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 3
|
||||||
|
},
|
||||||
|
"_children": [],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_prefab": null,
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1000
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_id": "61IfeQ6J5Kpp0fCcAF/VJO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.UITransform",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 7
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_contentSize": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"_anchorPoint": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0.5
|
||||||
|
},
|
||||||
|
"_id": "f2tzcWDiBNNKKrnPd07n/y"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Widget",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 7
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_alignFlags": 18,
|
||||||
|
"_target": null,
|
||||||
|
"_left": 0,
|
||||||
|
"_right": 0,
|
||||||
|
"_top": 0,
|
||||||
|
"_bottom": 0,
|
||||||
|
"_horizontalCenter": 0,
|
||||||
|
"_verticalCenter": 0,
|
||||||
|
"_isAbsLeft": true,
|
||||||
|
"_isAbsRight": true,
|
||||||
|
"_isAbsTop": true,
|
||||||
|
"_isAbsBottom": true,
|
||||||
|
"_isAbsHorizontalCenter": true,
|
||||||
|
"_isAbsVerticalCenter": true,
|
||||||
|
"_originalWidth": 0,
|
||||||
|
"_originalHeight": 0,
|
||||||
|
"_alignMode": 2,
|
||||||
|
"_lockFlags": 18,
|
||||||
|
"_id": "0f+BSXru9DValkOkklwcLG"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "e5804qewX9N9op0d4aH4r7B",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 7
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"stage": {
|
||||||
|
"__id__": 7
|
||||||
|
},
|
||||||
|
"touchNode": {
|
||||||
|
"__id__": 4
|
||||||
|
},
|
||||||
|
"_id": "aef3WWUq5ARp6kYDQOuKMM"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Camera",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 3
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_projection": 0,
|
||||||
|
"_priority": 1,
|
||||||
|
"_fov": 45,
|
||||||
|
"_fovAxis": 0,
|
||||||
|
"_orthoHeight": 667,
|
||||||
|
"_near": 0,
|
||||||
|
"_far": 2000,
|
||||||
|
"_color": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 0,
|
||||||
|
"g": 0,
|
||||||
|
"b": 0,
|
||||||
|
"a": 255
|
||||||
|
},
|
||||||
|
"_depth": 1,
|
||||||
|
"_stencil": 0,
|
||||||
|
"_clearFlags": 0,
|
||||||
|
"_rect": {
|
||||||
|
"__type__": "cc.Rect",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"width": 1,
|
||||||
|
"height": 1
|
||||||
|
},
|
||||||
|
"_aperture": 19,
|
||||||
|
"_shutter": 7,
|
||||||
|
"_iso": 0,
|
||||||
|
"_screenScale": 1,
|
||||||
|
"_visibility": 1107296259,
|
||||||
|
"_targetTexture": null,
|
||||||
|
"_postProcess": null,
|
||||||
|
"_usePostProcess": false,
|
||||||
|
"_cameraType": -1,
|
||||||
|
"_trackingType": 0,
|
||||||
|
"_id": "63WIch3o5BEYRlXzTT0oWc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.UITransform",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_contentSize": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"_anchorPoint": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0.5
|
||||||
|
},
|
||||||
|
"_id": "d6rUX5yfhMlKoWX2bSbawx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Canvas",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_cameraComponent": {
|
||||||
|
"__id__": 11
|
||||||
|
},
|
||||||
|
"_alignCanvasWithScreen": true,
|
||||||
|
"_id": "12O/ljcVlEqLmVm3U2gEOQ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Widget",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_alignFlags": 18,
|
||||||
|
"_target": null,
|
||||||
|
"_left": 375,
|
||||||
|
"_right": 375,
|
||||||
|
"_top": 667,
|
||||||
|
"_bottom": 667,
|
||||||
|
"_horizontalCenter": 0,
|
||||||
|
"_verticalCenter": 0,
|
||||||
|
"_isAbsLeft": true,
|
||||||
|
"_isAbsRight": true,
|
||||||
|
"_isAbsTop": true,
|
||||||
|
"_isAbsBottom": true,
|
||||||
|
"_isAbsHorizontalCenter": true,
|
||||||
|
"_isAbsVerticalCenter": true,
|
||||||
|
"_originalWidth": 0,
|
||||||
|
"_originalHeight": 0,
|
||||||
|
"_alignMode": 2,
|
||||||
|
"_lockFlags": 0,
|
||||||
|
"_id": "c5V1EV8IpMtrIvY1OE9t2u"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": null,
|
||||||
|
"asset": null,
|
||||||
|
"fileId": "bef93422-3e63-4c0f-a5cf-d926e7360673",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.SceneGlobals",
|
||||||
|
"ambient": {
|
||||||
|
"__id__": 17
|
||||||
|
},
|
||||||
|
"shadows": {
|
||||||
|
"__id__": 18
|
||||||
|
},
|
||||||
|
"_skybox": {
|
||||||
|
"__id__": 19
|
||||||
|
},
|
||||||
|
"fog": {
|
||||||
|
"__id__": 20
|
||||||
|
},
|
||||||
|
"octree": {
|
||||||
|
"__id__": 21
|
||||||
|
},
|
||||||
|
"skin": {
|
||||||
|
"__id__": 22
|
||||||
|
},
|
||||||
|
"lightProbeInfo": {
|
||||||
|
"__id__": 23
|
||||||
|
},
|
||||||
|
"postSettings": {
|
||||||
|
"__id__": 24
|
||||||
|
},
|
||||||
|
"bakedWithStationaryMainLight": false,
|
||||||
|
"bakedWithHighpLightmap": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.AmbientInfo",
|
||||||
|
"_skyColorHDR": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 0.520833125
|
||||||
|
},
|
||||||
|
"_skyColor": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 0.520833125
|
||||||
|
},
|
||||||
|
"_skyIllumHDR": 20000,
|
||||||
|
"_skyIllum": 20000,
|
||||||
|
"_groundAlbedoHDR": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 0
|
||||||
|
},
|
||||||
|
"_groundAlbedo": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 0
|
||||||
|
},
|
||||||
|
"_skyColorLDR": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0.2,
|
||||||
|
"y": 0.5,
|
||||||
|
"z": 0.8,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_skyIllumLDR": 20000,
|
||||||
|
"_groundAlbedoLDR": {
|
||||||
|
"__type__": "cc.Vec4",
|
||||||
|
"x": 0.2,
|
||||||
|
"y": 0.2,
|
||||||
|
"z": 0.2,
|
||||||
|
"w": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.ShadowsInfo",
|
||||||
|
"_enabled": false,
|
||||||
|
"_type": 0,
|
||||||
|
"_normal": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 1,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_distance": 0,
|
||||||
|
"_planeBias": 1,
|
||||||
|
"_shadowColor": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 76,
|
||||||
|
"g": 76,
|
||||||
|
"b": 76,
|
||||||
|
"a": 255
|
||||||
|
},
|
||||||
|
"_maxReceived": 4,
|
||||||
|
"_size": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 512,
|
||||||
|
"y": 512
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.SkyboxInfo",
|
||||||
|
"_envLightingType": 0,
|
||||||
|
"_envmapHDR": null,
|
||||||
|
"_envmap": null,
|
||||||
|
"_envmapLDR": null,
|
||||||
|
"_diffuseMapHDR": null,
|
||||||
|
"_diffuseMapLDR": null,
|
||||||
|
"_enabled": false,
|
||||||
|
"_useHDR": true,
|
||||||
|
"_editableMaterial": null,
|
||||||
|
"_reflectionHDR": null,
|
||||||
|
"_reflectionLDR": null,
|
||||||
|
"_rotationAngle": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.FogInfo",
|
||||||
|
"_type": 0,
|
||||||
|
"_fogColor": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 200,
|
||||||
|
"g": 200,
|
||||||
|
"b": 200,
|
||||||
|
"a": 255
|
||||||
|
},
|
||||||
|
"_enabled": false,
|
||||||
|
"_fogDensity": 0.3,
|
||||||
|
"_fogStart": 0.5,
|
||||||
|
"_fogEnd": 300,
|
||||||
|
"_fogAtten": 5,
|
||||||
|
"_fogTop": 1.5,
|
||||||
|
"_fogRange": 1.2,
|
||||||
|
"_accurate": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.OctreeInfo",
|
||||||
|
"_enabled": false,
|
||||||
|
"_minPos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": -1024,
|
||||||
|
"y": -1024,
|
||||||
|
"z": -1024
|
||||||
|
},
|
||||||
|
"_maxPos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1024,
|
||||||
|
"y": 1024,
|
||||||
|
"z": 1024
|
||||||
|
},
|
||||||
|
"_depth": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.SkinInfo",
|
||||||
|
"_enabled": false,
|
||||||
|
"_blurRadius": 0.01,
|
||||||
|
"_sssIntensity": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.LightProbeInfo",
|
||||||
|
"_giScale": 1,
|
||||||
|
"_giSamples": 1024,
|
||||||
|
"_bounces": 2,
|
||||||
|
"_reduceRinging": 0,
|
||||||
|
"_showProbe": true,
|
||||||
|
"_showWireframe": true,
|
||||||
|
"_showConvex": false,
|
||||||
|
"_data": null,
|
||||||
|
"_lightProbeSphereVolume": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PostSettingsInfo",
|
||||||
|
"_toneMappingType": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
11
bt-demo/assets/scene/GameEntry.scene.meta
Normal file
11
bt-demo/assets/scene/GameEntry.scene.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.1.50",
|
||||||
|
"importer": "scene",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "bef93422-3e63-4c0f-a5cf-d926e7360673",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
9
bt-demo/assets/script.meta
Normal file
9
bt-demo/assets/script.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "448b0525-daf3-4ad4-be4a-04a7e181f028",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
20
bt-demo/assets/script/GameEntry.ts
Normal file
20
bt-demo/assets/script/GameEntry.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { _decorator, Component, Node } from 'cc';
|
||||||
|
import * as BT from "kunpocc-behaviortree";
|
||||||
|
const { ccclass, property, menu } = _decorator;
|
||||||
|
@ccclass("GameEntry")
|
||||||
|
@menu("kunpo/GameEntry")
|
||||||
|
export class GameEntry extends Component {
|
||||||
|
@property(Node)
|
||||||
|
private stage: Node = null;
|
||||||
|
|
||||||
|
@property(Node)
|
||||||
|
private touchNode: Node = null;
|
||||||
|
|
||||||
|
start(): void {
|
||||||
|
BT
|
||||||
|
}
|
||||||
|
|
||||||
|
protected update(dt: number): void {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
9
bt-demo/assets/script/GameEntry.ts.meta
Normal file
9
bt-demo/assets/script/GameEntry.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.24",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "e5804a9e-c17f-4df6-8a74-778687e2bec1",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
73
bt-demo/assets/script/Math.ts
Normal file
73
bt-demo/assets/script/Math.ts
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
interface Math {
|
||||||
|
/**
|
||||||
|
* 限制值
|
||||||
|
* @param value 当前值
|
||||||
|
* @param min 最小值
|
||||||
|
* @param max 最大值
|
||||||
|
*/
|
||||||
|
clampf(value: number, min: number, max: number): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 随机从 min 到 max 的整数(包含min和max)
|
||||||
|
* @param min
|
||||||
|
* @param max
|
||||||
|
*/
|
||||||
|
rand(min: number, max: number): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 随机从 min 到 max的数
|
||||||
|
* @param min
|
||||||
|
* @param max
|
||||||
|
*/
|
||||||
|
randRange(min: number, max: number): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角度转弧度
|
||||||
|
* @param angle 角度
|
||||||
|
*/
|
||||||
|
rad(angle: number): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 弧度转角度
|
||||||
|
* @param radian 弧度
|
||||||
|
*/
|
||||||
|
deg(radian: number): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数值平滑渐变
|
||||||
|
* @param num1
|
||||||
|
* @param num2
|
||||||
|
* @param elapsedTime
|
||||||
|
* @param responseTime
|
||||||
|
*/
|
||||||
|
smooth(num1: number, num2: number, elapsedTime: number, responseTime: number): number;
|
||||||
|
}
|
||||||
|
|
||||||
|
Math.clampf = function (value: number, min: number, max: number): number {
|
||||||
|
return Math.min(Math.max(value, min), max);
|
||||||
|
};
|
||||||
|
|
||||||
|
Math.rand = function (min: number, max: number): number {
|
||||||
|
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||||
|
};
|
||||||
|
|
||||||
|
Math.randRange = function (min: number, max: number): number {
|
||||||
|
return Math.random() * (max - min) + min;
|
||||||
|
};
|
||||||
|
|
||||||
|
Math.rad = function (angle: number): number {
|
||||||
|
return (angle * Math.PI) / 180;
|
||||||
|
};
|
||||||
|
|
||||||
|
Math.deg = function (radian: number): number {
|
||||||
|
return (radian * 180) / Math.PI;
|
||||||
|
};
|
||||||
|
|
||||||
|
Math.smooth = function (num1: number, num2: number, elapsedTime: number, responseTime: number): number {
|
||||||
|
let out: number = num1;
|
||||||
|
if (elapsedTime > 0) {
|
||||||
|
out = out + (num2 - num1) * (elapsedTime / (elapsedTime + responseTime));
|
||||||
|
}
|
||||||
|
return out;
|
||||||
|
};
|
||||||
|
|
||||||
9
bt-demo/assets/script/Math.ts.meta
Normal file
9
bt-demo/assets/script/Math.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.24",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "a336ce23-5d73-4280-b2e9-084389a3877e",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
1
bt-demo/extensions-config/.gitignore
vendored
Normal file
1
bt-demo/extensions-config/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
local/
|
||||||
102
bt-demo/extensions-config/bt-editor/bt-tree1.json
Normal file
102
bt-demo/extensions-config/bt-editor/bt-tree1.json
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
{
|
||||||
|
"name": "bt-tree1",
|
||||||
|
"description": "",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"id": "1759472794685_3awlwerqg",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"name": "记忆选择节点",
|
||||||
|
"position": {
|
||||||
|
"x": -60,
|
||||||
|
"y": -200
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1759472800995_k3q8rx02h",
|
||||||
|
"1759472799864_nait7thja",
|
||||||
|
"1759472798713_ay9jxznr4",
|
||||||
|
"1759472797759_gu3y8p1um"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472797759_gu3y8p1um",
|
||||||
|
"className": "Inverter",
|
||||||
|
"name": "反转器",
|
||||||
|
"position": {
|
||||||
|
"x": 160,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472798713_ay9jxznr4",
|
||||||
|
"className": "LimitTime",
|
||||||
|
"name": "时间限制器",
|
||||||
|
"position": {
|
||||||
|
"x": 20,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472799864_nait7thja",
|
||||||
|
"className": "LimitTicks",
|
||||||
|
"name": "次数限制器",
|
||||||
|
"position": {
|
||||||
|
"x": -120,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1759472800995_k3q8rx02h",
|
||||||
|
"className": "Repeat",
|
||||||
|
"name": "重复节点",
|
||||||
|
"position": {
|
||||||
|
"x": -260,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"connections": [
|
||||||
|
{
|
||||||
|
"id": "conn_1759472802506_ojduz0zog",
|
||||||
|
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||||
|
"targetNodeId": "1759472800995_k3q8rx02h",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1759472803849_dk7zwd0xt",
|
||||||
|
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||||
|
"targetNodeId": "1759472799864_nait7thja",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1759472807533_unxo9p2b0",
|
||||||
|
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||||
|
"targetNodeId": "1759472798713_ay9jxznr4",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1759472809481_l9rcrno3b",
|
||||||
|
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||||
|
"targetNodeId": "1759472797759_gu3y8p1um",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
303
bt-demo/extensions-config/bt-editor/bt-tree2.json
Normal file
303
bt-demo/extensions-config/bt-editor/bt-tree2.json
Normal file
@@ -0,0 +1,303 @@
|
|||||||
|
{
|
||||||
|
"name": "bt-tree2",
|
||||||
|
"description": "",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"id": "1757930589538_qisfksbwz",
|
||||||
|
"className": "MemSequence",
|
||||||
|
"name": "记忆顺序节点",
|
||||||
|
"position": {
|
||||||
|
"x": -60,
|
||||||
|
"y": -200
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005578560_0b1kuefo0",
|
||||||
|
"node_1757926547913_xilg11ei7",
|
||||||
|
"1757931183149_eeuq44vs0"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926547913_xilg11ei7",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"name": "记忆选择节点",
|
||||||
|
"position": {
|
||||||
|
"x": 20,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"node_1757926550855_1hqcmi43w",
|
||||||
|
"node_1757926555912_18vbde5fp",
|
||||||
|
"1757930584200_cf9rez1qg",
|
||||||
|
"1757931171553_a3afal936"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926550855_1hqcmi43w",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"name": "等待次数",
|
||||||
|
"position": {
|
||||||
|
"x": -220,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 2
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "node_1757926555912_18vbde5fp",
|
||||||
|
"className": "WaitTime",
|
||||||
|
"name": "等待时间",
|
||||||
|
"position": {
|
||||||
|
"x": -60,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757930584200_cf9rez1qg",
|
||||||
|
"className": "Inverter",
|
||||||
|
"name": "反转器",
|
||||||
|
"position": {
|
||||||
|
"x": 100,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1757930606484_dbsf9bsu2"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757930606484_dbsf9bsu2",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"name": "等待次数",
|
||||||
|
"position": {
|
||||||
|
"x": 100,
|
||||||
|
"y": 160
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 0
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757931171553_a3afal936",
|
||||||
|
"className": "WaitTicks",
|
||||||
|
"name": "等待次数",
|
||||||
|
"position": {
|
||||||
|
"x": 260,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 0
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1757931183149_eeuq44vs0",
|
||||||
|
"className": "LimitTicks",
|
||||||
|
"name": "次数限制器",
|
||||||
|
"position": {
|
||||||
|
"x": 420,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"_max": 1
|
||||||
|
},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005570308_u6yo43u3b",
|
||||||
|
"className": "MemSelector",
|
||||||
|
"name": "记忆选择节点",
|
||||||
|
"position": {
|
||||||
|
"x": -540,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005574101_v4xhs2jo8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005572265_dl9lxnrki",
|
||||||
|
"className": "MemSequence",
|
||||||
|
"name": "记忆顺序节点",
|
||||||
|
"position": {
|
||||||
|
"x": -380,
|
||||||
|
"y": 40
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005575213_obgfw5q7p"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005574101_v4xhs2jo8",
|
||||||
|
"className": "Selector",
|
||||||
|
"name": "选择节点",
|
||||||
|
"position": {
|
||||||
|
"x": -540,
|
||||||
|
"y": 160
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005576340_c8xf5bdhp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005575213_obgfw5q7p",
|
||||||
|
"className": "RandomSelector",
|
||||||
|
"name": "随机选择节点",
|
||||||
|
"position": {
|
||||||
|
"x": -380,
|
||||||
|
"y": 160
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005577367_tw24xyxop"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005576340_c8xf5bdhp",
|
||||||
|
"className": "Sequence",
|
||||||
|
"name": "顺序节点",
|
||||||
|
"position": {
|
||||||
|
"x": -540,
|
||||||
|
"y": 280
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005577367_tw24xyxop",
|
||||||
|
"className": "Parallel",
|
||||||
|
"name": "并行节点",
|
||||||
|
"position": {
|
||||||
|
"x": -380,
|
||||||
|
"y": 280
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1758005578560_0b1kuefo0",
|
||||||
|
"className": "ParallelAnySuccess",
|
||||||
|
"name": "并行任意成功",
|
||||||
|
"position": {
|
||||||
|
"x": -460,
|
||||||
|
"y": -80
|
||||||
|
},
|
||||||
|
"parameters": {},
|
||||||
|
"children": [
|
||||||
|
"1758005570308_u6yo43u3b",
|
||||||
|
"1758005572265_dl9lxnrki"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"connections": [
|
||||||
|
{
|
||||||
|
"id": "conn_1757926557710_7asuzelad",
|
||||||
|
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||||
|
"targetNodeId": "node_1757926555912_18vbde5fp",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757926560138_ragkonnfy",
|
||||||
|
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||||
|
"targetNodeId": "node_1757926550855_1hqcmi43w",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757930585861_b5oi5rm01",
|
||||||
|
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||||
|
"targetNodeId": "1757930584200_cf9rez1qg",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757930591546_aul6he8br",
|
||||||
|
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||||
|
"targetNodeId": "node_1757926547913_xilg11ei7",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757931173864_bvoj26wca",
|
||||||
|
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||||
|
"targetNodeId": "1757931171553_a3afal936",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757931198693_i0xwbcybx",
|
||||||
|
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||||
|
"targetNodeId": "1757931183149_eeuq44vs0",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1757931631231_ecs9ql7x6",
|
||||||
|
"sourceNodeId": "1757930584200_cf9rez1qg",
|
||||||
|
"targetNodeId": "1757930606484_dbsf9bsu2",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005608025_lk647mty7",
|
||||||
|
"sourceNodeId": "1758005570308_u6yo43u3b",
|
||||||
|
"targetNodeId": "1758005574101_v4xhs2jo8",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005609490_i9jyzji9o",
|
||||||
|
"sourceNodeId": "1758005572265_dl9lxnrki",
|
||||||
|
"targetNodeId": "1758005575213_obgfw5q7p",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005610949_y0443s3om",
|
||||||
|
"sourceNodeId": "1758005575213_obgfw5q7p",
|
||||||
|
"targetNodeId": "1758005577367_tw24xyxop",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005614225_q84l7ry4u",
|
||||||
|
"sourceNodeId": "1758005578560_0b1kuefo0",
|
||||||
|
"targetNodeId": "1758005570308_u6yo43u3b",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005615813_q663l1nnl",
|
||||||
|
"sourceNodeId": "1758005578560_0b1kuefo0",
|
||||||
|
"targetNodeId": "1758005572265_dl9lxnrki",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758005618014_6uj500l16",
|
||||||
|
"sourceNodeId": "1758005574101_v4xhs2jo8",
|
||||||
|
"targetNodeId": "1758005576340_c8xf5bdhp",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conn_1758009576474_gtfkqutb1",
|
||||||
|
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||||
|
"targetNodeId": "1758005578560_0b1kuefo0",
|
||||||
|
"sourcePointType": "child",
|
||||||
|
"targetPointType": "parent"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
11
bt-demo/package.json
Executable file
11
bt-demo/package.json
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "kunpocreator",
|
||||||
|
"uuid": "f5d24040-9cd4-4a5a-8559-38bf55e621f7",
|
||||||
|
"creator": {
|
||||||
|
"version": "3.8.6"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"kunpocc-behaviortree": "^0.0.6",
|
||||||
|
"ts-node": "^10.9.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
80
bt-demo/settings/v2/packages/builder.json
Normal file
80
bt-demo/settings/v2/packages/builder.json
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.3.9",
|
||||||
|
"bundleConfig": {
|
||||||
|
"custom": {
|
||||||
|
"default": {
|
||||||
|
"displayName": "i18n:builder.asset_bundle.defaultConfig",
|
||||||
|
"configs": {
|
||||||
|
"native": {
|
||||||
|
"preferredOptions": {
|
||||||
|
"isRemote": false,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"web": {
|
||||||
|
"preferredOptions": {
|
||||||
|
"isRemote": false,
|
||||||
|
"compressionType": "merge_dep"
|
||||||
|
},
|
||||||
|
"fallbackOptions": {
|
||||||
|
"compressionType": "merge_dep"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"miniGame": {
|
||||||
|
"fallbackOptions": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"configMode": "fallback",
|
||||||
|
"overwriteSettings": {
|
||||||
|
"alipay-mini-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"bytedance-mini-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"fb-instant-games": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"huawei-quick-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"migu-mini-game": {
|
||||||
|
"isRemote": false,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"oppo-mini-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"taobao-mini-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"vivo-mini-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"wechatgame": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"xiaomi-quick-game": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
},
|
||||||
|
"taobao-creative-app": {
|
||||||
|
"isRemote": true,
|
||||||
|
"compressionType": "merge_all_json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
23
bt-demo/settings/v2/packages/cocos-service.json
Normal file
23
bt-demo/settings/v2/packages/cocos-service.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"__version__": "3.0.9",
|
||||||
|
"game": {
|
||||||
|
"name": "未知游戏",
|
||||||
|
"app_id": "UNKNOW",
|
||||||
|
"c_id": "0"
|
||||||
|
},
|
||||||
|
"appConfigMaps": [
|
||||||
|
{
|
||||||
|
"app_id": "UNKNOW",
|
||||||
|
"config_id": "8c18cb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configs": [
|
||||||
|
{
|
||||||
|
"app_id": "UNKNOW",
|
||||||
|
"config_id": "8c18cb",
|
||||||
|
"config_name": "Default",
|
||||||
|
"config_remarks": "",
|
||||||
|
"services": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
3
bt-demo/settings/v2/packages/device.json
Normal file
3
bt-demo/settings/v2/packages/device.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.1"
|
||||||
|
}
|
||||||
451
bt-demo/settings/v2/packages/engine.json
Normal file
451
bt-demo/settings/v2/packages/engine.json
Normal file
@@ -0,0 +1,451 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.12",
|
||||||
|
"modules": {
|
||||||
|
"graphics": {
|
||||||
|
"pipeline": "legacy-pipeline"
|
||||||
|
},
|
||||||
|
"configs": {
|
||||||
|
"migrationsConfig": {
|
||||||
|
"cache": {
|
||||||
|
"base": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"gfx-webgl": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"gfx-webgl2": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"gfx-webgpu": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"skeletal-animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"3d": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"meshopt": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"xr": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"rich-text": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"mask": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"graphics": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"ui-skew": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"affine-transform": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"ui": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"particle": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics": {
|
||||||
|
"_value": false,
|
||||||
|
"_option": "physics-ammo"
|
||||||
|
},
|
||||||
|
"physics-ammo": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_BULLET_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-cannon": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-physx": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_PHYSX_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-builtin": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-2d": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "physics-2d-builtin"
|
||||||
|
},
|
||||||
|
"physics-2d-box2d": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-2d-box2d-wasm": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_BOX2D_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-2d-builtin": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-2d-box2d-jsb": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"intersection-2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"primitive": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"profiler": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"occlusion-query": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"geometry-renderer": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"debug-renderer": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"particle-2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"audio": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"video": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"webview": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"tween": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"websocket": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"websocket-server": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"terrain": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"light-probe": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"tiled-map": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"vendor-google": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"spine": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "spine-3.8"
|
||||||
|
},
|
||||||
|
"spine-3.8": {
|
||||||
|
"_value": true,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"spine-4.2": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dragon-bones": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"marionette": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"procedural-animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"custom-pipeline-post-process": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"render-pipeline": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "legacy-pipeline"
|
||||||
|
},
|
||||||
|
"custom-pipeline": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"legacy-pipeline": {
|
||||||
|
"_value": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
},
|
||||||
|
"name": "迁移生成的配置",
|
||||||
|
"includeModules": [
|
||||||
|
"2d",
|
||||||
|
"affine-transform",
|
||||||
|
"animation",
|
||||||
|
"audio",
|
||||||
|
"base",
|
||||||
|
"gfx-webgl",
|
||||||
|
"gfx-webgl2",
|
||||||
|
"graphics",
|
||||||
|
"intersection-2d",
|
||||||
|
"legacy-pipeline",
|
||||||
|
"marionette",
|
||||||
|
"mask",
|
||||||
|
"particle-2d",
|
||||||
|
"physics-2d-builtin",
|
||||||
|
"procedural-animation",
|
||||||
|
"profiler",
|
||||||
|
"rich-text",
|
||||||
|
"skeletal-animation",
|
||||||
|
"spine-3.8",
|
||||||
|
"tween",
|
||||||
|
"ui",
|
||||||
|
"video",
|
||||||
|
"websocket",
|
||||||
|
"webview"
|
||||||
|
],
|
||||||
|
"noDeprecatedFeatures": {
|
||||||
|
"value": true,
|
||||||
|
"version": "<=3.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfig": {
|
||||||
|
"name": "默认配置",
|
||||||
|
"cache": {
|
||||||
|
"base": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"gfx-webgl": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"gfx-webgl2": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"gfx-webgpu": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"skeletal-animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"3d": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"meshopt": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"xr": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"rich-text": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"mask": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"graphics": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"ui-skew": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"affine-transform": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"ui": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"particle": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics": {
|
||||||
|
"_value": false,
|
||||||
|
"_option": "physics-ammo"
|
||||||
|
},
|
||||||
|
"physics-ammo": {
|
||||||
|
"_value": true,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_BULLET_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-cannon": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-physx": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_PHYSX_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-builtin": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-2d": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "physics-2d-builtin"
|
||||||
|
},
|
||||||
|
"physics-2d-box2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"physics-2d-box2d-wasm": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_BOX2D_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"physics-2d-builtin": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"physics-2d-box2d-jsb": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"intersection-2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"primitive": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"profiler": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"occlusion-query": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"geometry-renderer": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"debug-renderer": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"particle-2d": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"audio": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"video": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"webview": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"tween": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"websocket": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"websocket-server": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"terrain": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"light-probe": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"tiled-map": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"vendor-google": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"spine": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "spine-3.8"
|
||||||
|
},
|
||||||
|
"spine-3.8": {
|
||||||
|
"_value": true,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"spine-4.2": {
|
||||||
|
"_value": false,
|
||||||
|
"_flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dragon-bones": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"marionette": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"procedural-animation": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"custom-pipeline-post-process": {
|
||||||
|
"_value": false
|
||||||
|
},
|
||||||
|
"render-pipeline": {
|
||||||
|
"_value": true,
|
||||||
|
"_option": "custom-pipeline"
|
||||||
|
},
|
||||||
|
"custom-pipeline": {
|
||||||
|
"_value": true
|
||||||
|
},
|
||||||
|
"legacy-pipeline": {
|
||||||
|
"_value": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flags": {
|
||||||
|
"LOAD_SPINE_MANUALLY": false
|
||||||
|
},
|
||||||
|
"includeModules": [
|
||||||
|
"2d",
|
||||||
|
"affine-transform",
|
||||||
|
"animation",
|
||||||
|
"audio",
|
||||||
|
"base",
|
||||||
|
"custom-pipeline",
|
||||||
|
"gfx-webgl",
|
||||||
|
"graphics",
|
||||||
|
"intersection-2d",
|
||||||
|
"marionette",
|
||||||
|
"mask",
|
||||||
|
"particle-2d",
|
||||||
|
"physics-2d-builtin",
|
||||||
|
"procedural-animation",
|
||||||
|
"profiler",
|
||||||
|
"rich-text",
|
||||||
|
"skeletal-animation",
|
||||||
|
"spine-3.8",
|
||||||
|
"tween",
|
||||||
|
"ui",
|
||||||
|
"video",
|
||||||
|
"websocket",
|
||||||
|
"webview"
|
||||||
|
],
|
||||||
|
"noDeprecatedFeatures": {
|
||||||
|
"value": true,
|
||||||
|
"version": "<=3.8.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"globalConfigKey": "defaultConfig"
|
||||||
|
},
|
||||||
|
"macroConfig": {
|
||||||
|
"BATCHER2D_MEM_INCREMENT": 288
|
||||||
|
}
|
||||||
|
}
|
||||||
23
bt-demo/settings/v2/packages/information.json
Normal file
23
bt-demo/settings/v2/packages/information.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.1",
|
||||||
|
"information": {
|
||||||
|
"customSplash": {
|
||||||
|
"id": "customSplash",
|
||||||
|
"label": "customSplash",
|
||||||
|
"enable": false,
|
||||||
|
"customSplash": {
|
||||||
|
"complete": false,
|
||||||
|
"form": "https://creator-api.cocos.com/api/form/show?"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"removeSplash": {
|
||||||
|
"id": "removeSplash",
|
||||||
|
"label": "removeSplash",
|
||||||
|
"enable": false,
|
||||||
|
"removeSplash": {
|
||||||
|
"complete": false,
|
||||||
|
"form": "https://creator-api.cocos.com/api/form/show?"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
bt-demo/settings/v2/packages/ios.json
Normal file
11
bt-demo/settings/v2/packages/ios.json
Normal file
File diff suppressed because one or more lines are too long
3
bt-demo/settings/v2/packages/program.json
Normal file
3
bt-demo/settings/v2/packages/program.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.4"
|
||||||
|
}
|
||||||
29
bt-demo/settings/v2/packages/project.json
Normal file
29
bt-demo/settings/v2/packages/project.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.6",
|
||||||
|
"general": {
|
||||||
|
"designResolution": {
|
||||||
|
"height": 1334,
|
||||||
|
"width": 750,
|
||||||
|
"fitHeight": true
|
||||||
|
},
|
||||||
|
"highQuality": false
|
||||||
|
},
|
||||||
|
"custom_joint_texture_layouts": [],
|
||||||
|
"script": {
|
||||||
|
"preserveSymlinks": true
|
||||||
|
},
|
||||||
|
"layer": [
|
||||||
|
{
|
||||||
|
"name": "Window",
|
||||||
|
"value": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Game",
|
||||||
|
"value": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Graphics",
|
||||||
|
"value": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
4
bt-demo/settings/v2/packages/scene.json
Normal file
4
bt-demo/settings/v2/packages/scene.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"__version__": "1.0.3",
|
||||||
|
"current-scene": "bef93422-3e63-4c0f-a5cf-d926e7360673"
|
||||||
|
}
|
||||||
10
bt-demo/tsconfig.json
Normal file
10
bt-demo/tsconfig.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
/* Base configuration. Do not edit this field. */
|
||||||
|
"extends": "./temp/tsconfig.cocos.json",
|
||||||
|
/* Add your custom configuration here. */
|
||||||
|
"compilerOptions": {
|
||||||
|
"strict": false,
|
||||||
|
"module": "ES6",
|
||||||
|
"target": "ES6"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"copy": "cp -r dist/* ./../kunpo-ecs/demo/node_modules/kunpocc-behaviortree/dist/",
|
"copy": "cp -r dist/* ./bt-demo/node_modules/kunpocc-behaviortree/dist/",
|
||||||
"build": "npm run clean && rollup -c rollup.config.mjs && npm run copy"
|
"build": "npm run clean && rollup -c rollup.config.mjs && npm run copy"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
Reference in New Issue
Block a user