[WIP] En l'scroll

This commit is contained in:
2026-03-18 21:25:20 +01:00
parent ef277ee9b2
commit d35ad7d5b5
4 changed files with 11 additions and 12 deletions

View File

@@ -45,9 +45,9 @@ function render_view ( hab, x ,y )
surf.source(map_buffer)
surf.target(0)
print(hab)
viewp.roomXY(hab)
draw.surf(viewp.x,viewp.y,viewp.width,viewp.height,0,0,viewp.width,viewp.height)
local vrx, vry = viewp:roomXY(hab)
print(hab.." "..vrx.." "..vry)
draw.surf(viewp.x-vrx,viewp.y-vry,viewp.width,viewp.height,0,0,viewp.width,viewp.height)
surf.source(curr_ssurf)
surf.source(curr_tsurf)