Monday, March 30, 2009

Flexible script based module : Mimic

Yes, Mimic, I named it (:

This flexible script runner & modifier is for character design used in Project Iris. The main object of this module is to create a generic, flexible and easy use AI modifier, and even Behavior can be did so.

This module is separated into 4 parts :

1. Mimic Basic Behavior Define :
This part includes "element" of each action or behavior. For example, we can discompose WALKING into "Move" and "Change animation from standing still to walking", and "Slap" can be discomposed into "Walk to someone" "play slap animation" "Do damage to someone" and "Deliver expression to someone". Of course, "Walk to someone" can again dissolve into "Track for someone and get position" "play walking animation" and "Move to position".

For more advanced, any NPC will have to against gravity in every frame, so every NPC will have "Gravity Effect Recalculate" element and will be run every frame.

2. Mimic Basic Object Define :
This part offers basic framework of every object. For example, NPC object will always have such ability : walking, running, talking and basic attack. This part is still in development.

3. Mimic Script Translator :
This part translate script into .chr file. Literally, .chr indeed is .dll structure with numerous symbol callback.

4. Mimic Behavior Manager
This part is literally a wrapper of DllLoader, and do some resource handle for main frame.

Of course everyone can see, the main and the most is MBBD. The most challenging is splitting every action into element. In limited count of element we can compose a large number of actions, and can be managed in run-time. This is Mimic's main propose.