Game Development Reference
In the object classes, use a method that looks like this:
It's an ordinary function definition, but it behaves like an AJPAN[BN=IA event because it's called from
inside the manager class's AJPAN[BN=IA event. This means that you have only one AJPAN[BN=IA event
running for all the objects in the game. You can use it to precisely control the order in which the sub-
object's frame events run. If you want the k^fa_p? frame events to run before those of k^fa_p=, you
can change the order like this:
This system allows you to fine-tune the accuracy of the collision-detection system of your game and
avoid off-by-one errors. Remember this solution! It could become a life-saver in some of your own
game design projects. For games requiring accurate collision detection, it's essential.
This was a bit of a detour, but an important one. Now let's get back to Dungeon Maze Adventure!
Winning the game
When both enemies are defeated, `kknPsk opens: