81
81
if maxVel[dir] and vel[dir] > maxVel[dir] then vel[dir] = maxVel[dir] end
83
83
-- ugly hack for falling through floor on really slow frames
89
89
if vel[dir] ~= 0 then self[dir] = self[dir] + vel[dir] * elapsed end
92
92
if self[dir] < 0 then self[dir] = 0 end
93
93
local edge = the.activeMaze[util.dim(dir)] - the.player[util.dim(dir)]
94
94
-- TODO: take map position into account