Re-center rope

This commit is contained in:
Pyrex 2022-12-21 17:50:06 -08:00
parent 0606c0417f
commit a27cc2e6ef

View File

@ -760,7 +760,7 @@ function player:update()
self.rope=rope:new(
x+0.5-dx*0.5,y+0.5-dy*0.5,
self.x+0.5,self.y+0.1,
self.x+0.5,self.y+0.5,
level:get_latch(dx,dy,x*8,y*8)
)
@ -781,7 +781,7 @@ function player:update()
if self.rope then
self.rope:update()
self.rope:drag_dst(self.x+self.px/8+0.5,self.y+self.py/8+0.1)
self.rope:drag_dst(self.x+self.px/8+0.5,self.y+self.py/8+0.5)
local tdx,tdy=self.rope:tug_orientxy()
if (tdx!=0) self.orientx=tdx