Im new to programming with C++.
How do i imitate a gosub-return command from DBPro?
I really liked the command.
Anyways, I have this in mind as an alternate for a gosub. I hope there is a better way.
Pseaudocode below:
initialize and declare variables
while (loopGDK)
{
while (gamewindow==gamemap)
{do onmap events;
if (event wants to open windowshop)
{gamewindow=shop;break;}
}
while (gamewindow==shop)
{do shop events;
if (event wants to go back to gamemap)
{gamewindow=gamemap;break;}
}
while ......
}
Can i use GDK commands out of a while (loopGDK){code block} ?