Bees are create by Hive when player is next to.
Bees created with all fields to 0, except with (always 16), height (always 16), y (same that hive), x (same that hive + 8).
Bees kill when iState is 160 (iState increase by 1 at each cycle).
Bees follow player like Knife but goal is bees.x=player.x, bees.y=player.y.
Algorithme may be wrong ! It's very hard, without source code to understand how bees works.
To know size move of bees (iXD or iYD), you must use :
a = int((state + 7) / 32) b = a * 32 c = (state + 7) - b
|moveY||random(0-3)||random(0-4)||random(0-3)||0||random(0-1)||random(0-2)||If player is not on same Y, use sign to go to player. If player is on same Y, use sign inverted last yd.|
//iYD// = moveY[c] //iXD// = moveX[c]
iCounter = iState & 3