some includes I made collecting major dust
So with the recent flop of a rc car game (long story) I decided I'd at least put out some of the includes I made for it, and other projects.
Included are a few functions. Percent, which does what it says it does.
prep_menu, which helps save a few lines when preparing a menu object. Unless you work with menus a lot in your game, chances are you may not need this function. Just pass it the name of your menu and it'll set things like speech output mode, wrapping, allowing escape, to predetermined values.
For speech output, you might need to change the function up slightly to whatever your using for speech output. I was initially going to include my own speech output functions but then everyone else has already done that. Lol.
Dialog, which presents a little dialog to your user and doesn't go away until escape is pressed. This you may have to mod significantly to fit your game. Pass it the thing you want to say, a sound for when it opens, a sound for when it closes, and a boolian that determines whether sounds play when it opens/closes.
Lastly there are some sound related functions, which help with placing sounds around maps.
Create_amb helps you so you don't have to do calculations manually, instead pass it some coordinates you want the sounds to play at.
Create_pannable is similar, though it creates a smaller tile ranged sound. Please note that Both these functions return void. If your decent enough it won't be difficult to modify to fix that.
https://www.dropbox.com/s/s2a0hivh8p1gb … s.bgt?dl=1
I'll put up some more includes as I think of them, though this is the cleanest code I have to offer at the moment. Lol.
Take care all.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector