Skip to content

Instantly share code, notes, and snippets.

View evolutionleo's full-sized avatar
im totally fine

Evoleo evolutionleo

im totally fine
View GitHub Profile
@conorbuck
conorbuck / angle-between-points.js
Created May 5, 2012 22:51
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
@evolutionleo
evolutionleo / InheritFunction.gml
Last active June 10, 2021 20:33
A script that allows you to merge 2+ functions into 1, using a cool workaround
//#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++)