1 |
quit_timer = 0; |
2 |
keyboard_active = 1; |
3 |
axis_value = 0.4; |
4 |
fullscreen_toggle = 0; |
5 |
window_center_toggle = 0; |
6 |
screenshot_number = 0; |
7 |
border_fade_out = false; |
8 |
border_fade_in = false; |
9 |
border_alpha = 1; |
10 |
border_fade_value = 0.025; |
11 |
loaded = false; |
12 |
paused = false; |
13 |
pausing = false; |
14 |
screenshot = -1; |
15 |
if (instance_number(obj_time_ch1) > 1) |
16 |
{ |
17 |
instance_destroy(); |
18 |
} |
19 |
else |
20 |
{ |
21 |
display_height = display_get_height(); |
22 |
display_width = display_get_width(); |
23 |
window_size_multiplier = 1; |
24 |
for (_ww = 2; _ww < 6; _ww += 1) |
25 |
{ |
26 |
if (display_width > (640 * _ww) && display_height > (480 * _ww)) |
27 |
window_size_multiplier = _ww; |
28 |
} |
29 |
if (window_size_multiplier > 1) |
30 |
{ |
31 |
window_set_size(640 * window_size_multiplier, 480 * window_size_multiplier); |
32 |
window_center_toggle = 1; |
33 |
} |
34 |
if (os_type == os_switch) |
35 |
{ |
36 |
switch_controller_support_set_defaults(); |
37 |
switch_controller_support_set_singleplayer_only(true); |
38 |
switch_controller_set_supported_styles(7); |
39 |
} |
40 |
scr_controls_default_ch1scr_controls_default_ch1function scr_controls_default_ch1()
{
global.button0 = gp_face1;
global.button1 = gp_face2;
global.button2 = gp_face4;
if (os_type == os_ps4)
{
var os_map = os_get_info();
var ps4_confirm_button = undefined;
if (os_map != -1)
{
var mapsize = ds_map_size(os_map);
var key = ds_map_find_first(os_map);
for (var i = 0; i < (mapsize - 1); i++)
{
if (key == "enter_button_assign")
ps4_confirm_button = ds_map_find_value(os_map, key);
else
key = ds_map_find_next(os_map, key);
}
ds_map_destroy(os_map);
}
if (ps4_confirm_button == 0)
{
global.button0 = gp_face2;
global.button1 = gp_face1;
}
else
{
global.button0 = gp_face1;
global.button1 = gp_face2;
}
global.button2 = gp_face4;
}
else if (os_type == os_switch)
{
global.button0 = gp_face2;
global.button1 = gp_face1;
global.button2 = gp_face4;
}
global.default_button0 = global.button0;
global.default_button1 = global.button1;
global.default_button2 = global.button2;
global.input_k[0] = vk_down;
global.input_k[1] = vk_right;
global.input_k[2] = vk_up;
global.input_k[3] = vk_left;
global.input_k[4] = ord("Z");
global.input_k[5] = ord("X");
global.input_k[6] = ord("C");
global.input_k[7] = vk_enter;
global.input_k[8] = vk_shift;
global.input_k[9] = vk_control;
global.input_g[0] = gp_padd;
global.input_g[1] = gp_padr;
global.input_g[2] = gp_padu;
global.input_g[3] = gp_padl;
global.input_g[4] = global.button0;
global.input_g[5] = global.button1;
global.input_g[6] = global.button2;
global.input_g[7] = 999;
global.input_g[8] = 999;
global.input_g[9] = 999;
obj_gamecontroller.gamepad_shoulderlb_reassign = 0;
} (); |
41 |
scr_ascii_input_names_ch1scr_ascii_input_names_ch1function scr_ascii_input_names_ch1()
{
global.asc_def[8] = ;
global.asc_def[9] = ;
global.asc_def[12] = ;
global.asc_def[13] = ;
global.asc_def[19] = ;
global.asc_def[20] = ;
global.asc_def[27] = ;
global.asc_def[32] = ;
global.asc_def[33] = ;
global.asc_def[34] = ;
global.asc_def[35] = ;
global.asc_def[36] = ;
global.asc_def[37] = ;
global.asc_def[38] = ;
global.asc_def[39] = ;
global.asc_def[40] = ;
global.asc_def[45] = ;
global.asc_def[46] = ;
global.asc_def[48] = "0";
global.asc_def[49] = "1";
global.asc_def[50] = "2";
global.asc_def[51] = "3";
global.asc_def[52] = "4";
global.asc_def[53] = "5";
global.asc_def[54] = "6";
global.asc_def[55] = "7";
global.asc_def[56] = "8";
global.asc_def[57] = "9";
global.asc_def[65] = "A";
global.asc_def[66] = "B";
global.asc_def[67] = "C";
global.asc_def[68] = "D";
global.asc_def[69] = "E";
global.asc_def[70] = "F";
global.asc_def[71] = "G";
global.asc_def[72] = "H";
global.asc_def[73] = "I";
global.asc_def[74] = "J";
global.asc_def[75] = "K";
global.asc_def[76] = "L";
global.asc_def[77] = "M";
global.asc_def[78] = "N";
global.asc_def[79] = "O";
global.asc_def[80] = "P";
global.asc_def[81] = "Q";
global.asc_def[82] = "R";
global.asc_def[83] = "S";
global.asc_def[84] = "T";
global.asc_def[85] = "U";
global.asc_def[86] = "V";
global.asc_def[87] = "W";
global.asc_def[88] = "X";
global.asc_def[89] = "Y";
global.asc_def[90] = "Z";
global.asc_def[91] = ;
global.asc_def[96] = ;
global.asc_def[97] = ;
global.asc_def[98] = ;
global.asc_def[99] = ;
global.asc_def[100] = ;
global.asc_def[101] = ;
global.asc_def[102] = ;
global.asc_def[103] = ;
global.asc_def[104] = ;
global.asc_def[105] = ;
global.asc_def[106] = ;
global.asc_def[107] = ;
global.asc_def[109] = ;
global.asc_def[110] = ;
global.asc_def[111] = ;
global.asc_def[112] = ;
global.asc_def[113] = ;
global.asc_def[114] = ;
global.asc_def[115] = ;
global.asc_def[116] = ;
global.asc_def[117] = ;
global.asc_def[118] = ;
global.asc_def[119] = ;
global.asc_def[120] = ;
global.asc_def[121] = ;
global.asc_def[122] = ;
global.asc_def[123] = ;
global.asc_def[144] = ;
global.asc_def[145] = ;
global.asc_def[160] = ;
global.asc_def[161] = ;
global.asc_def[162] = ;
global.asc_def[163] = ;
global.asc_def[164] = ;
global.asc_def[165] = ;
global.asc_def[186] = ";";
global.asc_def[187] = "=";
global.asc_def[188] = ",";
global.asc_def[189] = "-";
global.asc_def[190] = ".";
global.asc_def[191] = "?";
global.asc_def[192] = "~";
global.asc_def[219] = "[";
global.asc_def[220] = ;
... (); |
42 |
for (i = 0; i < 10; i += 1) |
43 |
{ |
44 |
global.input_pressed[i] = 0; |
45 |
global.input_held[i] = 0; |
46 |
global.input_released[i] = 0; |
47 |
} |
48 |
if (global.is_console) |
49 |
{ |
50 |
application_surface_enable(true); |
51 |
application_surface_draw_enable(false); |
52 |
} |
53 |
scr_enable_screen_border_ch1scr_enable_screen_border_ch1function scr_enable_screen_border_ch1(arg0)
{
var flag = arg0;
flag = flag != 0;
if (flag != global.screen_border_active)
{
global.screen_border_active = flag != 0;
global.screen_border_state = 0;
global.screen_border_dynamic_fade_id = 0;
global.screen_border_dynamic_fade_level = 0;
}
} (global.is_console); |
54 |
} |