Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hi everyone. I've been interested in making my own games with GBDK and I managed to make a few couple things but I'm having trouble adding music to my games. I use Linux but the majority of tutorials and examples are for windows and I'm having difficulties compiling. I've tried joining the Discord channel but for some reason the invitation doesn't work for me. Could someone help me with this? I've no idea of how to start adding background music into the game. Any help appreciated!
Last edited by Martin (2020-11-05 21:54:20)
Offline
One way is with GBT-Player, though the GBDK side of it is no longer seeing updates. If I recall, toxa is also working on another solution, but I don't know how far along he is with it or how viable it is in its current stage as I haven't looked at music for my project since I got the placeholder music working.
https://github.com/AntonioND/gbt-player
Here are some GBT-Player tutorials by GamingMonsters, parts 18 and 19 of his ongoing series for GBDK, if you want to look into that as a solution.
Composing your music for GBT-Player:
https://www.youtube.com/watch?v=7l93RP986Zo
Playing it in GBDK:
https://www.youtube.com/watch?v=4W7j3GQSmvU
If you're going to use OpenMPT as your tracker (the one shown in the tutorials,) it should run under Wine 1.8 or newer without issue.
Offline
Hi,
I played a bit around with GBT player. I can compile the example and the music is played but I am confused...
void gbt_play(void *data, UINT8 bank, UINT8 speed);
Somehow the speed parameter does not work. The music is played always with the same speed.
void gbt_loop(UINT8 loop);
Same here. I call the function with gbt_loop( 0 ); instead of gbt_loop( 1 ); but in both cases the song is repeated.
I just used the template.mod from the example.
Would be nice if somebody can clarify it. Thanks!
Offline
Hi, yes thats possible. Thanks!
Offline
0x7f, honestly, try hUGETracker: https://github.com/untoxa/hUGEBuild
Offline
Hi toxa,
yes, I am sure hUGETracker is the better music player. But for the moment I am happy with GBT player.
Offline