Deconstructing the example Multi Vexirk
Posted: Sun Mar 04, 2012 6:54 pm
I'm trying to get a handle on how the mutli-vexirx attack bitmaps work, but I don't follow the logic.
What code displays the yellow attack frame? It seems to be this:
I assume dsb_ai is just returning the value 4 to the attack code, which picks the fourth bitmap from the attack bitmap array?
I had a look in the DSB Wiki, but there's no mention of AI_ATTACK_BMP in the list of monster AI...
http://dmwiki.atomas.com/wiki/DSB/Monster_AI
What code displays the yellow attack frame? It seems to be this:
Code: Select all
function multivexirk_close(arch, id, back_tile)
dsb_ai(id, AI_ATTACK_BMP, 4)
.....
I had a look in the DSB Wiki, but there's no mention of AI_ATTACK_BMP in the list of monster AI...
http://dmwiki.atomas.com/wiki/DSB/Monster_AI