This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//build fonts | |
//-------------------------- | |
global.fnt_textbox = font0; | |
//get OS Language | |
//-------------------------- | |
global.language = os_get_language(); | |
//Load appropriate langage table for UI via JSON | |
//THING HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///setup_audio(); | |
var lc = audio_get_listener_count(); | |
var masks; | |
masks[0] = 0; | |
masks[1] = 0; | |
masks[2] = 0; | |
masks[3] = 0; | |
alert("Number of Audio Listeners: " + string(lc),0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///setup_input(run in a create event!) | |
//gamepads | |
var gp_num = gamepad_get_device_count(); | |
for (var i = 0; i < gp_num; i++;) | |
{ | |
if gamepad_is_connected(i) | |
{ | |
alert("DEBUG: "+ string(gamepad_get_description(i)),0) | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///gamepad_color(device,color,time) | |
var device = argument0; | |
var color = argument1; | |
var time = argument2; //(use something like .01) | |
if color != global.gpColor | |
{ | |
var led = merge_color(global.gpColor,color,global.gpColorFader) | |
global.gpColorFader += time; | |
gamepad_set_color(device,led) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///PC users or PS4 Input | |
if os_type == os_windows || os_ps4 || os_xboxone | |
{ | |
if gamepad_button_check_any(global.gpDevice) | |
{ | |
global.KBMuser = false; | |
} | |
if keyboard_check(vk_anykey) || mouse_check_button(mb_any) | |
{ | |
global.KBMuser = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///alert(level[0 to 3],message) | |
var level = argument0; | |
var text = argument1; | |
{ | |
switch (argument0) | |
{ | |
case 0: show_debug_message("DEBUG: "+text); break; | |
case 1: show_debug_message("ERROR: "+text); break; | |
case 2: show_message("ALERT: "+text); break; |
NewerOlder