458 |
458 |
459 // create the window |
459 // create the window |
460 asc_window_initialize(0, asc_gl_context_settings_default(4, 0)); |
460 asc_window_initialize(0, asc_gl_context_settings_default(4, 0)); |
461 asc_window_set_title(0, "Snake"); |
461 asc_window_set_title(0, "Snake"); |
462 asc_window_set_size(0, asc_vec2_ftou( |
462 asc_window_set_size(0, asc_vec2_ftou( |
463 asc_vec2f_scale(ASC_VEC2F(1024+HUD_WIDTH, 1024), asc_ui_scale_auto()))); |
463 asc_vec2f_scale(ASC_VEC2F(1000+HUD_WIDTH, 1000), asc_ui_scale_auto()))); |
464 asc_window_center(0); |
464 asc_window_center(0); |
465 |
465 |
466 // load textures |
466 // load textures |
467 textures_init(); |
467 textures_init(); |
468 |
468 |