Simple C program of a 4 player dynamic splitscreen N64 setup by creating up to 4 viewports to demonstrate N64 multiplayer functionality.
Controllers are mapped to each viewport with movement for P1, P2, P3, P4 unique to their respective viewport.
Compile using libdragon SDK - https://github.com/DragonMinded/libdragon
Compiled .Z64 rom will run on real hardware or on Ares emulator - https://github.com/ares-emulator/ares