This commit is contained in:
the me 2022-08-07 14:14:04 -07:00
commit 09ade10207
117 changed files with 2153 additions and 0 deletions

View file

@ -0,0 +1,28 @@
function distabs(dir, distance) {
var dist = {
x: 0,
y: 0
}
/*var bitch = instance_create(x1, y1, o_null);
bitch.speed = distance;
bitch.direction = dir;
with bitch {
dir2hv(direction, speed);
x += hspd;
y += vspd;
}
dist.x = bitch.x;
dist.y = bitch.y;
instance_destroy(bitch);*/
with dist {
dir2hv(dir, distance);
x = hspd;
y = vspd;
};
//log(distance, hspd, vspd);
//hspd = 0;
//vspd = 0;
return dist;
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
},
"resourceVersion": "1.0",
"name": "distabs",
"tags": [],
"resourceType": "GMScript",
}