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
#macro arguments argument_count == 0 ? [] : (argument_count == 1 ? [argument[0]] : (argument_count == 2 ? [argument[0], argument[1]] : (argument_count == 3 ? [argument[0], argument[1], argument[2]] : (argument_count == 4 ? [argument[0], argument[1], argument[2], argument[3]] : (argument_count == 5 ? [argument[0], argument[1], argument[2], argument[3], argument[4]] : (argument_count == 6 ? [argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]] : (argument_count == 7 ? [argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6]] : (argument_count == 8 ? [argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6], argument[7]] : (argument_count == 9 ? [argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6], argument[7], argument[8]] : (argument_count == 10 ? [argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6], argument[7], argument[8], argument[9]] : (arg |
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
/// @desc | |
if live_call() return live_result | |
// I didn't use batches, because apparently they are screwed up by transforms | |
CleanTransformReset() | |
// Head | |
var _x = room_width/2 |
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
// usage: | |
/* | |
pack(data); | |
function() { | |
data = unpack(); | |
... | |
} | |
depack(); | |
// you can also pass the `name` argument into any function |
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
//#macro super merge_functions // uncomment this if you prefer the name 'super' | |
///@function merge_functions(func1, func2, <func3>) | |
///@param {function} func1 | |
///@param {function} *func2 | |
///@param {function} *func3 | |
function merge_functions() { | |
var funcs = array_create(argument_count, undefined) | |
for(var i = 0; i < argument_count; i++) |