![]() |
Routines |
| Prev: B82A | Up: Map | Next: B873 |
|
Used by the routine at InitialiseGame.
Called every frame. In the duel and the bonus stage, which both have TownOffset set to zero, it runs the routine for the kind of stage which is in StageKind, as long as there are still stages to play (TargetsLeft is not zero). In kind 00 nothing happens, in kind 01 money bags are made, and in kind 02 the duel is set up.
|
||||
|
This routine is only for the duel and the bonus stage.
|
||||
| RunStageScript | B85B | LD A,($A267) | Return if TownOffset is not zero, so this is the town. | |
| B85E | AND A | |||
| B85F | RET NZ | |||
|
The stage continues only while there is something left to play.
|
||||
| B860 | LD A,($A264) | Return if TargetsLeft is zero. | ||
| B863 | AND A | |||
| B864 | RET Z | |||
| B865 | LD A,$01 | Set StageRunningFlag, so that the objects can go without a life being lost. | ||
| B867 | LD ($A240),A | |||
| B86A | LD A,($A265) | Fetch the kind of stage. | ||
| B86D | LD BC,$B873 | Point BC at StageRoutines. | ||
|
Run the routine for the kind of stage.
|
||||
| B870 | JP RunTableRoutine | Jump to RunTableRoutine. | ||
| Prev: B82A | Up: Map | Next: B873 |