Add destroyable lighting
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module Dodge.Creature.Update
|
||||
where
|
||||
import Dodge.Data
|
||||
|
||||
import System.Random
|
||||
-- combinators for helping with dealing with creature update
|
||||
|
||||
type CRUpdate = World -> (World -> World,StdGen) -> Creature -> ((World -> World,StdGen), Maybe Creature)
|
||||
|
||||
unrandUpdate :: (Creature -> World -> World) -> (Creature -> Maybe Creature)
|
||||
-> CRUpdate
|
||||
unrandUpdate h cF w (f,g) cr = ( ( h cr . f , g) , cF cr )
|
||||
Reference in New Issue
Block a user