This commit is contained in:
2021-03-24 02:11:33 +01:00
parent 26ac0142b1
commit 03587a7906
7 changed files with 21 additions and 116 deletions
-13
View File
@@ -97,19 +97,6 @@ updateSeenWalls w = foldr markSeen w wallsToUpdate
setTestStringIO :: IO World -> IO World
setTestStringIO = fmap (\ w -> set testString (show $ s w) w)
where s w = (-.-) <$> (w ^? creatures . ix 0 . crPos) <*> (w ^? creatures . ix 0 . crOldPos)
-- w --do numC <- Mix.numChannelsPlaying
-- w' <- w
-- let ycr = _creatures w' IM.! 0
-- let st = _stance $ _crState ycr
-- let vel = magV $ _crPos ycr -.- _crOldPos ycr
-- let (x,y) = zoneOfPoint $ _crPos ycr
-- --fmap (set testString $ show (map _wlLine $ IM.elems $ _wallsZone w' IM.! x IM.! y)) w
-- fmap (set testString $ show $ last $ show $ pairsToIncidence' $ _pathGraph' w') w
-- update logic: creature old position set, creatures perform actions including movement,
-- creatures collided with each other, camera updated, projectiles updated, creatures
-- collided with walls
checkEndGame :: World -> World
checkEndGame w | _crHP (you w) < 1 = haltSound $ w {_menuState = GameOverMenu}