adjusting wallslide
This commit is contained in:
parent
6518695a9e
commit
38db226cc7
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ drawTile ai ctx pr pc row col img = do
|
|||
(fromIntegral col - pc)) * (tileHeight / 2)
|
||||
unless (img == Nothing) $ do
|
||||
let dist = distance (V2 (fromIntegral row) (fromIntegral col))
|
||||
(V2 (realToFrac pr - 0.5) (realToFrac pc + 0.5)) / 4
|
||||
(V2 (realToFrac pr - 1) (realToFrac pc)) / 4
|
||||
fact = if (floor pr <= row && floor pc >= col) && isWall (fromJust img)
|
||||
then min 1 dist
|
||||
else 1
|
||||
|
|
Loading…
Reference in a new issue