Split Scrolling Example

Mihoshi20

Member
MHO_LogoBootup.gif

As a request to Dale Coop, here is an example of a split scrolling technique. Included is an assembled rom along with script file and assets required to assemble.
This code is provided as is and can be used in any way you see fit. It is designed for advanced users who are familiar with coding concepts such as NES scroll registers and other advanced techniques.
This code can likely be integrated into NESmaker after the reset routine but before the engine begins loading screens. It's most useful for splash screens and logos, start screens, along with cutscenes. Integration into levels might be difficult but still possible.

Basic concept is run the routine at the start of mainloop after just leaving NMI. Rendering is done as the screen is being drawn. The first split occurs and the a wait routine holds as scanlines are drawn and then the next split occures. This can continue for as many splits as you want. Splits can be scrolled like in this example or only parts of it can scroll while other portions remain static. Variables are updated during NMI that set the scroll positions and a check occures at the end of the scanline waits to see if the image has reached full frame.

Hopefully you find this useful. I can't provide specific support for this example but hopefully it's commented well enough to understand what is going on. Mesen's debugger can be of great help stepping through the code.

View attachment MHO_Splitscroll.zip
 
Top Bottom