I've read alot of libs and have conquered them all.
Then I get to Sidewalk santa and I am bombarded
with odd letters.
what does the /turf/proc/offset accomplish and how does it
work?
You can find the source
Here.
/turf/proc/Offset(D,xo,yo)
var/J=yo
switch(D)
if(2)
xo=-xo
yo=-yo
if(4)
yo=-xo
xo=j
if(8)
yo=xo
xo=-j
return locate(x+xo,y+yo,z)
ie:
why does the xo and yo turn negative if the usr is facing south and so forth...
I assume D is direction. Since direction can be given through numbers, if(2) means if(the thing is facing south) make the pixel_x and pixel_y offsets negative.