Sound on Dr. Racket...


I really wanted to do something with sound this time. Nothing much. A soundtrack, a few audio cues maybe...

However, it's not looking good. Dr. Racket has a play-sound function in racket/gui, but it's really, really crude. About useful for bings or dings. but not so great if you want to start a long soundtrack playing, then pause it or restart it or whatever depending on the course of the game. Windows Racket is not great (uses MCI), but with sufficient hacking I could maybe get it to do something reasonable. Linux is (with no disrespect to the fine folks at Racket who tried) even worse -- it starts the sound playing in a parallel process, after which it's like the proverbial arrow, shot up into the air.

SDL is probably the way to go. I'm looking at https://github.com/cosmez/racket-sdl, but at this point, don't know that I have enough time to figure it out.

However, speaking of figuring stuff out... I've gotten a lot done on the draggin' dragon front! I've written a complete 2D vector math library, converted stuff mostly to it, made the dragon's eye look at the pearl and got my foreground cloud layer working. Actually, a "complete 2D vector math library" isn't all _that_ impressive (there's no such thing as cross product in 2D), but it helps me think at a slightly higher level for movement. I'm hoping to use it to rig up a spring simulator for my dragon's body tomorrow.

At one point, I was drawing a red line from the dragon's eye to the pearl, it looked like a laser! This suggests a new game mechanic, but I'm probably not going to get to it before the end...

Get Draggin' Dragon

Leave a comment

Log in with itch.io to leave a comment.