Zoom in when spawning
This commit is contained in:
@@ -13,7 +13,8 @@ respawn w = w & uncurry spawnAt (w ^. cWorld . lWorld . respawnPos)
|
||||
|
||||
spawnAt :: Point2 -> Float -> World -> World
|
||||
spawnAt p d w = w
|
||||
& wCam . camZoom .~ 1000
|
||||
& wCam . camZoom .~ 0.000000001
|
||||
& wCam . camDefaultZoom .~ 0.000000001
|
||||
& wSoundFilter .~ FilterBySoundOrigin (S.singleton SpawnSound)
|
||||
-- & cWorld . lWorld . creatures . at 0 %~ (fmap f . (<|> Just startCr))
|
||||
& cWorld . lWorld . creatures . at 0 ?~ f startCr
|
||||
|
||||
Reference in New Issue
Block a user