A BGT error, or what?

Hello guys. I learned BGT last year, and today, due to the boredom I had, I said: Why not making a nay simulator?
For those who don't know the nay, it's an Arabic musical instrument, like the flute. And since I play the flute and I like the nay very much, I thought to make this idea. But after I finished writing the scrypt (the most silly and simple one I have ever wrote), I runned it, and as soon as the program starts, it exits. I compiled it into an .exe, the same thing. So for those who know BGT, here's the scrypt, and please help me:
sound a;
sound b;
sound c;
sound d;
sound e;
sound f;
sound g;
sound h;
sound intro;
void main() {
show_game_window("the nay!");
intro.stream("sounds/intro.MP3");
intro.play();
while(intro.playing) {
if(key_pressed(KEY_RETURN)) {
intro.stop();
}
}
game();
return;
}
void game() {
a.load("sou nds/a.ogg");
b.load("sounds/b.ogg");
c.load("sounds/c.ogg");
d.load("sounds/d.ogg");
e.load("sounds/e.ogg");
f.load("sounds/f.ogg");
g.load("sounds/g.ogg");
h.load("sounds/h.ogg");
if(key_pressed(KEY_Q)) {
a.play();
}
if(key_pressed(KEY_W)) {
b.play();
}
if(key_pressed(KEY_E)) {
c.play();
}
if(key_pressed(KEY_R)) {
d.play();
}
if(key_pressed(KEY_T)) {
e.play();
}
if(key_pressed(KEY_Y)) {
f.play();
}
if(key_pressed(KEY_U)) {
g.play();
}
if(key_pressed(KEY_I)) {
h.play();
}
if(key_pressed(KEY_Z)) {
exit();
}
}
Thank you and have a nice day.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Development room : roro via Audiogames-reflector
    • ... AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Development room : roro via Audiogames-reflector

Reply via email to