Hi,
I have a question with regards to using while loops within a game program.
For example my program would be split into many sections and may look like the following:
main menu and start prompt
load pre-saved game option
main game level 1 play
gameover screen,etc..
The main menu with start prompt would draw the screen with button, and would continuously loop until an option (in this case start) was selected, at which point would proceed to the next stage which would be the load pre-saved game.
My query is regarding a separate 'redraw screen' method, can I have the system call this automatically, even though it is not included in the while loop, or do I have to include refreshview in every while loop/segment?
Also would using the while loop disrupt any other iphone routines?
Thanks in advance
M1
I have a question with regards to using while loops within a game program.
For example my program would be split into many sections and may look like the following:
main menu and start prompt
load pre-saved game option
main game level 1 play
gameover screen,etc..
The main menu with start prompt would draw the screen with button, and would continuously loop until an option (in this case start) was selected, at which point would proceed to the next stage which would be the load pre-saved game.
My query is regarding a separate 'redraw screen' method, can I have the system call this automatically, even though it is not included in the while loop, or do I have to include refreshview in every while loop/segment?
Also would using the while loop disrupt any other iphone routines?
Thanks in advance
M1