| 589 |
589 |
| 590 // initialize globals |
590 // initialize globals |
| 591 globals_init(); |
591 globals_init(); |
| 592 |
592 |
| 593 // create the window |
593 // create the window |
| 594 asc_window_initialize(0, asc_gl_context_settings_default(4, 0)); |
594 asc_window_initialize(0, false); |
| 595 asc_window_set_title(0, "Snake"); |
595 asc_window_set_title(0, "Snake"); |
| 596 asc_window_set_size(0, asc_vec2_ftou( |
596 asc_window_set_size(0, asc_vec2_ftou( |
| 597 asc_vec2f_scale(ASC_VEC2F(600+HUD_WIDTH, 600), asc_ui_scale_auto()))); |
597 asc_vec2f_scale(ASC_VEC2F(600+HUD_WIDTH, 600), asc_ui_scale_auto()))); |
| 598 asc_window_center(0); |
598 asc_window_center(0); |
| 599 |
599 |