Re: Heat Engine, a game engine for BGT games
Alright everyone, it must be something with the Heat Engine. Removing everything related to HE, and calling show_game_window, it's working great here. Is it maybe because I'm making/calling the game object for HE before void main()?
Anyhow, here's the new code. If I can use show_game_window while using engine functions, that'd be good as there's some issue with the game object.
#include "dynamic_menu.bgt"
void main()
{
dynamic_menu menu;
int choice;
show_game_window("test");
menu.add_item_tts("New Game");
menu.add_item_tts("Continue Game");
menu.add_item_tts("Exit Game");
choice=menu.run("Please choose an option from the following menu.", true);
if(choice==-1)
{
alert("Error", "There was a problem with menu loading.");
exit();
}
if(choice==1)
{
alert("Unavailable", "Map file unavailable.");
}
if(choice==2)
{
alert("Woops", "There is not a saved game to load.");
}
if(choice==3)
{
exit();
}
}
HTH.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector