HM Kaiser
Member |
Hi ! I have a question about VBL interrupt, and demo effects subroutines. Let's explain that:
Let's say the VBL interrupt handles, for instance, a starfield and a scrolltext, which are permanent. In the intro, the first effect does not need VBL for timing.
But for another effect, I need to do more things during the VBL interrupt. And when this effect is finished, these things of course don't need to run any longer. -> how do I call this additionnal stuff ? I thought about a "flag" tested in the VBL interrupt routine, and jump (or not) to the additionnal stuff given the result of this flag ? -> or should I do another VBL interrupt, with additional code / jumps to sub routines ?
What are the good practices ?
|