Giter Site home page Giter Site logo

esengine / behaviourtree-ai Goto Github PK

View Code? Open in Web Editor NEW
89.0 5.0 30.0 13.98 MB

基于ecs-framework开发的AI(BehaviourTree、UtilityAI、FSM)系统。适用于egret/laya/cocos

License: MIT License

JavaScript 55.81% TypeScript 44.19%
behaviourtree egret selector laya cocos fsm

behaviourtree-ai's Issues

isIConditional函数判断是不是有问题?

var isIConditional = (props: any): props is IConditional => typeof (props as IConditional)['update'] !== 'undefined';
编译成js代码如下
var isIConditional = function (props) { return typeof props['update'] !== 'undefined'; };
只检查了函数是否具有update函数。Behavior里自带了update函数,也就是所有继承自Behavior的函数都会返回true。并不能判断是不是条件节点吧?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.