But C and C++ are different. Sort of. C++ is the one that gives you object oriented programming.
Having said that, yes, it does look just about as you described it. One can try to make it more readable with meaningful variable and function names. But the syntax can take a bit of getting used to.
Here is an example I am using in my Tier 2 State Machine Demo writeup to show the difference between how it would be done in Tier 1 and Tier 2 (the example actually is used to illustrate why a state machine is needed in Tier 2, so don't try this by itself, unless you want your app hung).
In Tier 1 you can do something like this and easily get to the statement after 'endwhile' by touching the app:
// set up stuff
Print("Touch anywhere to continue")
// wait for user
while GetPointerPressed() = 0
// repeat the instructions because Print only lasts
// until the next Sync() call
Print("Touch anywhere to continue")
// update to check for user input
Sync()
endwhile
// continue doing stuff
Print("Okay, let's get going")
But in Tier 2, the equivalent loop will be totally hung (note how relatively easy it is to convert Tier 1 to Tier 2):
// set up stuff
agk::Print("Touch anywhere to continue");
// wait for user
while (GetPointerPressed() == 0)
{
// repeat the instructions because Print only lasts
// until the next Sync() call
agk::Print("Touch anywhere to continue");
// update to check for user input
agk::Sync();
}
// continue doing stuff
agk::("Okay, let's get going");
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master