Revision 293
generalized menu
proj.c | ||
---|---|---|
161 | 161 |
switch (game_state) { |
162 | 162 |
case MENU: |
163 | 163 |
graph_clear_screen(); |
164 |
game_state = menu_update_state(main_menu, click); |
|
164 |
switch(menu_update_state(main_menu, click)){ |
|
165 |
case -1: game_state = MENU; break; |
|
166 |
case 0: game_state = GAME; break; |
|
167 |
case 1: game_state = TEST; break; |
|
168 |
case 2: game_state = EXIT; break; |
|
169 |
} |
|
165 | 170 |
menu_draw(main_menu); |
166 | 171 |
|
167 | 172 |
click = 0; |
Also available in: Unified diff