lua-users home
lua-l archive

Re: How to implement this with LuaMacro?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Pavel Shevaev wrote:
By the way, I'm thinking how to get rid of ADD constructs using
LuaMacro since they are redundant. So instead of:
PARAL(
 ADD(SEQ(
 ADD(Foo())
 ADD(Bar))
 )),
 ADD(Zoo())
)
It could simply be:
PARAL(
 SEQ(
 Foo(),
 Bar()
 ),
 Zoo()
 )
That does look much better.
There is a great site aigamedev.com with LOTS of information on AI and
behavior trees in particular. You can start with this introduction
video http://aigamedev.com/open/articles/behavior-trees-part1/ and
watch rest 2 and 3 parts by changing the last number in the url.
Interesting! I listened to all three parts. It would have been nice to see a tangible implementation, but I get the idea. And I must admit that I did not dig deeper at the site. I'm not a game developer, just interested in the subject matter.
Doug

AltStyle によって変換されたページ (->オリジナル) /