Its a simple question but organising very large apps is not a trivial task.
I was just wondering if people had a better way to do it than what I do at the moment.
For example an app with a number of different pages such as home_screen, selection_screen etc etc;
- void draw()
- {
- switch(pages)
- {
- case home_screen:
- // draw the home screen gui
- // check which buttons were pressed
- // if selection_button was pressed, pages = selection_screen
- break;
- case: selection_screen:
- // draw the selection screen gui
- // do some more stuff here
- break;
- }
- }
So that's basically the general arrangement and I have some functions, classes, & sections of code put into tabs and to make the app less disorganised.
This seems like the best way to me but I would like to hear other peoples methods to see if anyone has a better way.
Thanks.
Joe.
1