General question for anyone who would be able to help me : I'm thinking of putting music into Dodger that runs along while the game is playing ... any ideas on how to set this up in XB?
I did something like this with Shooting Stars. Not sure it work well with music (apparently okay with sound effects) as real iron and/or emulators might have the tones sound a bit erratic (with frequencies constantly being refreshed/booted).
100 REM TITLE SCREEN ETC.
200 REM LEVEL SETUP
300 REM GAME LOOP
310 CALL GETMUSIC
320 CALL SOUND(1,F1,V1,F2,V2,F3,V3)
330 CALL GAMESTUFF
340 IF LIVES>0 THEN 300
400 REM SONOFABITCH
410 CALL ARGHH
420 GOTO 200
The duration of 1 in the sound statement will have your game refresh with the frame update, that being each frame or more. If your game logic and updates takes less than one frame then call sound will be called (and control) every frame (excellent for manual sprite control). Obviously you have to have some control counter for duration in your music data fetching routine.
just to let you hear it here is one of my pieces of music I will be including, I coped the Exidy game "Mousetrap"
It's compiled so I knew how it would sound, and it's pretty tight.
Edited by sometimes99er, Tue Apr 8, 2014 12:50 AM.