DJ's Bad Apple Mix
by DJ Sures · updated 15 hours ago
2:47 · 3.6 KB compiledThis is the remix that I created for my Bad Apple NABU Demo.
Use it in your game
Download the C header above, put it next to your program, and play it with NabuTracker V2 from NABU-LIB:
#include "NABU-LIB.h"
#include "NabuTrackerV2.h"
#include "mysong.h" // the downloaded C header
void main() {
initNABULib();
nt2_init(mysong); // once
while (true) {
vdp_waitVDPReadyInt(); // or however your game waits for vsync
nt2_tick(); // once per frame
if (playerJumped)
nt2_sfx(mysong, 0, 2); // sound effect 0 on channel 2
}
}
nt2_tick() advances the music by one frame, so call it once per vsync (60 times a second). Sound effects borrow a
channel from the music and give it back when they finish.