General cleanup, remove Drawing type synonym

This commit is contained in:
2021-03-23 15:48:14 +01:00
parent b13467053a
commit 451ef98b9f
8 changed files with 100 additions and 48 deletions
+3 -3
View File
@@ -9,6 +9,7 @@ import Dodge.WallCreatureCollisions
import Dodge.CreatureAction
import Geometry
import Picture
import Data.List
import Data.Char
@@ -54,9 +55,8 @@ stateUpdate u w (f,g) cr = case u w (f,g) (updateMovement g cr) of
. over decorations addCorpse
. insertIt
crBeforeDeath = colCrWall w $ cr
-- addCorpse = insertNewKey $ uncurry translateDrawing (_crPos crBeforeDeath)
addCorpse = insertNewKey $ uncurry translateDrawing (_crOldPos cr)
$ rotateDrawing (radToDeg (_crDir cr))
addCorpse = insertNewKey $ uncurry translate (_crOldPos cr)
$ rotate (_crDir cr)
(_crCorpse cr)
maybeIt = evalState (maybeTakeOne $ IM.elems (_crInv cr)) (_randGen w)
insertIt = case maybeIt of