a bit of a mess? surely not

This commit is contained in:
the me 2022-08-15 10:51:51 -07:00
parent 47cae629df
commit 0ead044da1
14 changed files with 289 additions and 16 deletions

View file

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