I'm confused on how this is ment to work.
Say i have a splash screen or start screen that i want displayed untill some one hits enter, can anyone explain a good way of doing this? Its seems so easy but i just don't get it yet.
I was hoping that this code would work.
dbLoadBitmap("Sprites\\Splash.png",0); // load splash
dbLoadBitmap("Sprites\\testlevel.bmp", 1); // load testlevel
int process = 0; // 0 - load title 1- check title input 2- start level
// our main loop
while ( LoopGDK ( ) )
{
if(process == 0)
{
dbSetCurrentBitmap(0); // this is the splash screen
}
if(dbReturnKey() == 1)
{
dbSetCurrentBitmap(1); // this is a test level
process = 1;
}
if(process == 1)
{
// then startup player
// rest of code is player stuff not important
I just need help on it.
Also if anyone could give any examples of how to load new levels and that i would really appreciate it.
Again i'm just learning and i'm sorry to be asking all these questions.