Giter Club home page Giter Club logo

liz's Introduction

Liz - lizard brain for game entities

Liz is a data-oriented behavior tree library implemented in C.

Learning about liz' internals

The best way to learn liz works is to first read liz_vm.h and liz_vm.c and especially look into the functions with the liz_vm_step_ prefix.

Extending liz with new decider or action nodes

  • Add a new type enum value and node defining structs to liz_shape_atom in liz_common_internal.h.
  • Extend liz_builder.
  • Extend liz_vm to invoke the new node and guard it if it is a decider.

Cross portability

The primary development environment for liz is Mac OS X 10.7.x. I haven't tried to port it to another platform yet. However, liz is written in a C99 subset that should, for example, be compilable as C++ in MSVC10.

To port liz to a new platform adapt:

  • liz_platform_types.h - e.g., provide definitions for bool, bit-sized integer types like int32_t or uint16_t, and uintptr_t and intptr_t, etc.
  • liz_platform_macros.h - adapt the macros, e.g., LIZ_INLINE or LIZ_RESTRICT to your compiler.
  • liz_platform_functions.h - adapt these functions, e.g., assert, memmove, etc. to your platform, if necessary.

liz's People

Contributors

bjoernknafla avatar

Watchers

Chica avatar James Cloos avatar

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.