View tileset.scm
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
(define (script-fu-respace-tiles-addMarginSpacing inImage inLayer tileSize) | |
(let* ( | |
(margin 1) | |
(spacing 2) | |
(duplicatePadding TRUE) | |
(theWidth (car (gimp-drawable-width inLayer))) | |
(theHeight (car (gimp-drawable-height inLayer))) | |
(theMarginX (* 2 margin)) | |
(theMarginY (* 2 margin)) |
View setup_language
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 |
View gamepad_color
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) |
View draw_fade_color
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
///draw_fade_color(color,speed/alplha) | |
alert(0,"Fading..." + "(" + (string(color_fade_alpha)) +"). Cannot pause game." ) | |
can_pause = false; | |
depth = -100000 | |
var snapped = color_fade_alpha//= floor(color_fade_alpha * 10)/10 | |
draw_set_colour(argument0) | |
draw_set_alpha(snapped); | |
draw_rectangle(0, 0, view_xview [0] + view_wview[0], view_yview[0] + view_hview[0], false); | |
draw_set_blend_mode_ext(bm_src_colour,bm_zero); |
View setup_audio
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) |
View audio_play
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
///audio_play(listener,snd_filename,fade in time[ms],loop?) | |
var listener = argument0; | |
var sfx = argument1; | |
var time = argument2; | |
var loop = argument3; | |
if gamepad_is_connected(listener) | |
{ | |
sfx = audio_play_sound_on(listener, sfx, loop, 0); | |
} | |
else if listener == noone || listener == -1 |
View alert
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; |
View setup_input
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 |
View input_change
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; |
OlderNewer