packages feed

ansi-terminal-game 0.6.0.1 → 0.6.1.0

raw patch · 5 files changed

+15/−15 lines, 5 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Terminal.Game: fetchAniFrame :: Animation -> Plane
- Terminal.Game: isAniExpired :: Animation -> Bool
+ Terminal.Game: lapse :: () => Timed a -> Timed a
+ Terminal.Game: ticks :: () => Integer -> Timed a -> Timed a

Files

ansi-terminal-game.cabal view
@@ -1,5 +1,5 @@ name:                ansi-terminal-game-version:             0.6.0.1+version:             0.6.1.0 synopsis:            sdl-like functions for terminal applications, based on                      ansi-terminal description:         Library which aims to replicate standard 2d game
changes.txt view
@@ -1,3 +1,10 @@+0.6.1.0+-------++- Reworked Timers/Animations interface and documentation+- Added `lapse` (for Timers/Animations)+- Released Fri 22 Nov 2019 01:03:37 CET+ 0.6.0.1 ------- 
src/Terminal/Game.hs view
@@ -21,6 +21,7 @@  -- xxx timer in contrib o altro modulo? -- xxx qptain e jimreed, implement normal movement+-- todo add readme  module Terminal.Game ( -- * Running                        FPS,@@ -40,7 +41,6 @@                        Timed,                        creaTimer, creaBoolTimer,                        creaTimerLoop, creaBoolTimerLoop,-                       fetchFrame, isExpired,                         -- ** Animations                        Animation,@@ -48,10 +48,11 @@                        -- xxx o di certo Loop e ExpBehaviour                        Loop(..), ExpBehaviour(..),                        creaAnimation,-                       tick, reset,-                       fetchAniFrame, isAniExpired,-                       getFrames, +                       -- ** Timers/Animations interface+                       tick, ticks, reset, lapse,+                       fetchFrame, isExpired, getFrames,+                        -- ** Random numbers                        StdGen,                        getStdGen, mkStdGen,@@ -60,7 +61,7 @@                         -- * Drawing                        -- | To get to the gist of drawing, check the-                       -- documentation of '%'.+                       -- documentation for '%'.                         -- ** Plane                        Plane,
src/Terminal/Game/Animation.hs view
@@ -28,14 +28,6 @@ creaAnimation :: Loop -> [(Integer, Plane)] -> Animation creaAnimation = creaTimedRes --- | Alias for 'fetchFrame'.-fetchAniFrame :: Animation -> Plane-fetchAniFrame = fetchFrame---- | Alias for 'isExpired'.-isAniExpired :: Animation -> Bool-isAniExpired = isExpired-  ------------------- -- SERIALISATION --
src/Terminal/Game/Layer/Object/IO.hs view
@@ -239,7 +239,7 @@           -- row = previous row           blitLine :: Row -> [(Cell, Cell)] -> IO Row           blitLine pr ccs =-                CM.foldM blitCell 0 ccs                >>+                CM.foldM_ blitCell 0 ccs               >>                 -- have to use setCursorPosition (instead of nextrow) b/c                 -- on win there is an auto "go-to-next-line" when reaching                 -- column end and on win it does not do so