behavior3lua:lua的行为树

上传者: 42123237 | 上传时间: 2023-01-13 08:57:01 | 文件大小: 261KB | 文件类型: ZIP
行为树框架 for Lua 机缘巧合,近几年的工作一直有涉及到游戏AI这块,网上常见的行为树+黑板似乎不太能满足复杂策划需求,也不太可能让策划自己去配置这种行为树。因此,我对行为树的黑板进行了小改造,让行为树更像一个代码编辑器,我们程序提供为数不多的行为节点,让策划通过编辑行为树来实现他们想要的逻辑,这对于游戏程序员来说也算是一种解放吧。 基本概念 节点数据结构 { name = 'find_enemy', -- 节点名称 desc = '查找敌人', -- 说明 args = {w = 100, h = 50}, -- 常量配置 input = {'var1', 'var2'}, -- 输入变量 output = {'target'}, -- 输出变量 children = {}

文件下载

资源详情

[{"title":"( 35 个子文件 261KB ) behavior3lua:lua的行为树","children":[{"title":"behavior3lua-master","children":[{"title":"test.lua <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"example","children":[{"title":"conditions","children":[{"title":"find_enemy.lua <span style='color:#111;'> 941B </span>","children":null,"spread":false}],"spread":true},{"title":"actions","children":[{"title":"get_hp.lua <span style='color:#111;'> 251B </span>","children":null,"spread":false},{"title":"move_to_pos.lua <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"move_to_target.lua <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"idle.lua <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"attack.lua <span style='color:#111;'> 402B </span>","children":null,"spread":false}],"spread":true},{"title":"process.lua <span style='color:#111;'> 992B </span>","children":null,"spread":false}],"spread":true},{"title":".luacheckrc <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"workspace","children":[{"title":"workspace.json <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":"node-config.json <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"trees","children":[{"title":"hero.json <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"monster.json <span style='color:#111;'> 429B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"lualib","children":[{"title":"json.lua <span style='color:#111;'> 9.79KB </span>","children":null,"spread":false},{"title":"behavior3","children":[{"title":"sample_process.lua <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"behavior_ret.lua <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"behavior_tree.lua <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"behavior_node.lua <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"nodes","children":[{"title":"conditions","children":[{"title":"cmp.lua <span style='color:#111;'> 991B </span>","children":null,"spread":false}],"spread":false},{"title":"decorators","children":[{"title":"always_fail.lua <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"always_success.lua <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"not.lua <span style='color:#111;'> 581B </span>","children":null,"spread":false}],"spread":false},{"title":"composites","children":[{"title":"selector.lua <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"parallel.lua <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"sequence.lua <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"actions","children":[{"title":"log.lua <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"wait.lua <span style='color:#111;'> 616B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"export_node.lua <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"readme","children":[{"title":"editor.png <span style='color:#111;'> 105.92KB </span>","children":null,"spread":false},{"title":"monster.png <span style='color:#111;'> 26.43KB </span>","children":null,"spread":false},{"title":"running.png <span style='color:#111;'> 97.25KB </span>","children":null,"spread":false},{"title":"README1.jpg <span style='color:#111;'> 26.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明