Rename (indexed) particles to projectiles
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ updateSoundQueue = set soundQueue []
|
||||
updateLightSources w = set tempLightSources (catMaybes tlss) w'
|
||||
where (w',tlss) = mapAccumR (\a b -> _tlsUpdate b a b) w $ _tempLightSources w
|
||||
|
||||
updateParticles w = IM.foldr' _ptUpdate w $ _particles w
|
||||
updateParticles w = IM.foldr' _ptUpdate w $ _projectiles w
|
||||
|
||||
updateSmoke :: World -> World
|
||||
updateSmoke w = w & smoke %~ mapMaybe (\s -> _smUpdate s s)
|
||||
@@ -113,7 +113,7 @@ setTestStringIO = fmap (\ w -> set testString (show $ s w) 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, particles updated, creatures
|
||||
-- creatures collided with each other, camera updated, projectiles updated, creatures
|
||||
-- collided with walls
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user