apecs-brillo 0.2.0.0 → 0.2.0.1
raw patch · 4 files changed
+11/−10 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +1/−1
- apecs-brillo.cabal +1/−1
- examples/balls/Main.hs +1/−1
- src/Apecs/Brillo.hs +8/−7
README.md view
@@ -52,7 +52,7 @@ velocity dT = Apecs.cmap \(Position pos, Velocity vel) -> Position $ pos + vel ^* dT gravity :: Float -> Apecs.System World ()-gravity dT = Apecs.cmap \(Velocity vel) -> Position $ vel + gravityVel ^* dT+gravity dT = Apecs.cmap \(Velocity vel) -> Velocity $ vel + gravityVel ^* dT where gravityVel = V2 0 (-1) handleEvent :: Brillo.Event -> Apecs.System World ()
apecs-brillo.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: apecs-brillo-version: 0.2.0.0+version: 0.2.0.1 synopsis: Apecs' gloss package, but adapted for brillo. description: A library that's meant to bridge the gap between brillo and gloss. category: Game engine
examples/balls/Main.hs view
@@ -48,7 +48,7 @@ velocity dT = Apecs.cmap \(Position pos, Velocity vel) -> Position $ pos + vel ^* dT gravity :: Float -> Apecs.System World ()-gravity dT = Apecs.cmap \(Velocity vel) -> Position $ vel + gravityVel ^* dT+gravity dT = Apecs.cmap \(Velocity vel) -> Velocity $ vel + gravityVel ^* dT where gravityVel = V2 0 (-1) handleEvent :: Brillo.Event -> Apecs.System World ()
src/Apecs/Brillo.hs view
@@ -4,13 +4,6 @@ module Apecs.Brillo ( Camera(..) - , Brillo.Event(..)- , Brillo.Key(..)- , Brillo.SpecialKey(..)- , Brillo.MouseButton(..)- , Brillo.KeyState(..)- , Brillo.Modifiers(..)- , playWithApecs , cameraTransform@@ -18,6 +11,14 @@ , cfoldDraw , cfoldDrawM++ -- * Brillo re-exports+ , Brillo.Event(..)+ , Brillo.Key(..)+ , Brillo.SpecialKey(..)+ , Brillo.MouseButton(..)+ , Brillo.KeyState(..)+ , Brillo.Modifiers(..) ) where import Brillo qualified