2019-07-20 20:56:32 (edited by Omar Alvarado 2019-07-20 20:57:06)

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.

2019-07-20 22:46:07

Thanks, i'm moving away from bgt, but these could be useful.
And oo, an rc car game?

2019-07-21 00:35:01

yeah it flopped because bgt's joystick class has some serious issues.
Sometime this week I'm going to sit down and see if there is a decent tutorial for programming python aimed at making audiogames.

2019-07-21 01:45:37

One is in progress, at nathan smith.com. he's working on the audio game section right now.

2019-07-21 08:53:33

nathantech.net

2019-07-21 21:04:25

Oh yeah, it's .net, my bad.

2019-07-22 02:18:57

Thanks, this are cool things. Especially the sound source thingy.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-07-22 04:17:03

Yeah, i do like that thingy.

2019-07-22 14:57:01

I also made some edits to the file to work with m_pro instead of the normal dynamic_menu

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-07-23 19:22:44

yeah sorry, I don't have access to m_pro, no idea where to get it as I've only seen it in projects, and it's never been documented and it looks complex as fuuuuuuuck. Lol!