Skip to content
Zalo edited this page Jul 12, 2017 · 15 revisions

If you want to add any music

  • Create the folder res/music and place your mods there.
  • To select the bank where the music will be stored remember to include it between the filename and the extension (eg: game.b3.mod will go to bank 3)
  • In StateGame.c declare a extern UINT8* array named [filename]_mod_Data. For example, if your file is named game.mod then you should declare it like this
extern UINT8* game_mod_Data[];
  • At the end of the Start method of StateGame.c call PlayMusic
void Start_STATE_GAME() {
	...
	PlayMusic(game_mod_Data, 3, 1);
}
Clone this wiki locally