THE KILLSQUARE (does not kill)
This commit is contained in:
parent
cfcfd3e263
commit
47cae629df
10 changed files with 123 additions and 6 deletions
15
eastern flames/scripts/c_gettile/c_gettile.gml
Normal file
15
eastern flames/scripts/c_gettile/c_gettile.gml
Normal file
|
@ -0,0 +1,15 @@
|
|||
function c_gettile(x, y) {
|
||||
var thex = round((x-16)/ts.x);
|
||||
var they = round((y-16)/ts.y);
|
||||
if c_tileexists(thex, they) return mp[thex][they];
|
||||
return noone;
|
||||
}
|
||||
|
||||
function c_tileexists(posx, posy) {
|
||||
if posx < array_length(mp) && posx >= 0 {
|
||||
if posy < array_length(mp[posx]) && posy >= 0 {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
12
eastern flames/scripts/c_gettile/c_gettile.yy
Normal file
12
eastern flames/scripts/c_gettile/c_gettile.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "c_gettile",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue