Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » start the game

This thread is locked; no one can reply to it. rss feed Print
start the game
Vieira
Member #16,926
December 2018

Hi friends,;D
I'm setting up a menu for my game and wanted to know: how do I make when I press "iniciar" start the game? I want to know if I need to create a new window and destroy the menu, or if I have to stay in the same window and clear it for the game to appear, however I do not know how to do that.

I use this for the phases of the menu:

#SelectExpand
1if(((ev.mouse.x>=820)&&(ev.mouse.x<=1030))&&((ev.mouse.y>=240)&&(ev.mouse.y<=360))) 2{ al_draw_text(mainfontmenor,al_map_rgb(250,0,0),780,280,NULL,"InIcIaR")};

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: