Hunt and chase returns
Hopefully this will be the last update to the enemy AI routines. I would appreciate if the various level creators can update their levels to the latest code (using the Leprechaun Level Editor, v20061101) and see how well things work. For the attached WIP the leprechauns eventually find the player at the starting position, something I was having great difficulty accomplishing with drop off detection.
The Leprechaun (and player) color indicates the direction their joystick is pointing:
gold UP orange DOWN pink LEFT blue RIGHT purple UP & LEFT violet DOWN & LEFT lt blue UP & RIGHT cyan DOWN & RIGHT
A lighter color means the leprechaun is in hunt mode, versus chase mode. The AI is mostly based on the last action and hunt versus chase mode. See do_enemy in LEPBANK1.ASM for the gory details.
3 Comments
Recommended Comments