This commit is contained in:
the me 2022-08-15 18:01:09 -07:00
parent 0ead044da1
commit 51cc3f3ca6
20 changed files with 278 additions and 33 deletions

View file

@ -1,6 +1,11 @@
function c_gettile(x, y, absolute=false) {
var thex = round((x-16)/ts.x);
var they = round((y-16)/ts.y);
if absolute {
var thex = round((x-16)/ts.x);
var they = round((y-16)/ts.y);
} else {
var thex = x;
var they = y;
}
if c_tileexists(thex, they) return mp[thex][they];
return noone;
}