425 |
425 |
426 // initialize globals |
426 // initialize globals |
427 globals_init(); |
427 globals_init(); |
428 |
428 |
429 // create the window |
429 // create the window |
430 AscWindowSettings settings; |
430 asc_window_initialize(0, asc_gl_context_settings_default(4, 0)); |
431 asc_window_settings_init_defaults(&settings); |
|
432 asc_window_initialize(0, &settings); |
|
433 asc_window_set_title(0, "Snake"); |
431 asc_window_set_title(0, "Snake"); |
434 asc_window_set_size(0, asc_vec2_ftou( |
432 asc_window_set_size(0, asc_vec2_ftou( |
435 asc_vec2f_scale(ASC_VEC2F(1024+HUD_WIDTH, 1024), asc_ui_scale_auto()))); |
433 asc_vec2f_scale(ASC_VEC2F(1024+HUD_WIDTH, 1024), asc_ui_scale_auto()))); |
436 asc_window_center(0); |
434 asc_window_center(0); |
437 |
435 |