Behaviour Tree - unit test

  • clone kwik-project-template

    git clone https://github.com/kwiksher/kwik5-project-template kwik-project
  • create a new book for unit testing - unitest

    • New Project Manually

      ./Scripts/create_book.command Solar2D MyTest "animation button"
    • set env.book and env.gotoPage with the unit test book’s name

      env.book = "MyTest"
      env.page = "animation"
  • set beheviorTree module and unitest .tree files for animtion and button page

    • generate actions/conditions/views files from .tree

    TODO

    • remove TheLastSpark files like cabin_scene.tree, forst_scene.lua etc

    • create a github repositoy

      kwik5-sample-books/Solar2D/App/TheLastSpark/behaviorTree

      • create templates for actions, conditions and views with a sample .tree
  • animation.tree

  • button.tree

  • images from font awesome

animation

  • dispatching from
    • behavior tree
    • animation onComplete to Btree condition(boolean)

button action

  • Btree condition(boolean)

TODO kwik editor skin 2x ⭐️

  • 2x layout modification
    • Bug: shapes are not scaled with env.scale = 0.5
  • font
    • animation and button with text replacement