110 likes | 255 Views
State Machine Tool. A research project For CS580 By Adrián Ahuatzi Ayala. What? Why? How? Demo Questions. What. section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db ‘Woof, woof!',0xa
E N D
State Machine Tool A research project For CS580 By AdriánAhuatzi Ayala
What? • Why? • How? • Demo • Questions
What section .text global _start _start: movedx,len movecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msgdb ‘Woof, woof!',0xa lenequ $ - msg
Why No game project, yet… Create a tool
How?The big picture Compiled Interpreted
How?Game side (C++) 1. NPC behavior 2. Lua friendly S.M. 3. Register with Lua 4. Start State
How?Tool side 1. UI & S.M. Logic 2. Talk “Lua” 3. Lua script
How?Lua S.M. GoSouth GoEast
Demo! • demo
Questions & References • Buckland, Programming Game AI by Example • Mascarenhas, LuaInterface: User’s Guide