I want to create a game that expands its view automatically based on the users view, this works fine.
proc
ceiling(a)
return -round(-a)
mob
var
tmp
ClientHeight
ClientWidth
Login()
..()
var/a=winget(src,"map1","size")
ClientHeight=text2num(copytext(a,findtext(a,"x")+1))
ClientWidth=text2num(copytext(a,1,findtext(a,"x")))
client.view="[ceiling(ClientWidth/32)]x[ceiling(ClientHeight/32)]"
Next I wanted to create a stationary HUD on all 4 corners of the screen, this is fine if all tiles are displayed but I use ceiling so that there's no potential for black borders, so when I use screen_loc it's displaying off the screen partially because the tile is also off the screen partially.
How would I go about taking this into account properly and displaying in the correct position? I already use the Resize event to re-position my items on Resize as well, but I need it to position in the same place still and I can't seem to make anything work.
Can anyone help me on this?