packages feed

ansi-terminal-game 1.6.0.1 → 1.6.0.2

raw patch · 3 files changed

+13/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES view
@@ -1,3 +1,9 @@+1.6.0.2+-------++- lun 15 nov 2021, 02:21:08+- more doc tweaking+ 1.6.0.1 ------- 
ansi-terminal-game.cabal view
@@ -1,5 +1,5 @@ name:                ansi-terminal-game-version:             1.6.0.1+version:             1.6.0.2 synopsis:            sdl-like functions for terminal applications, based on                      ansi-terminal description:         Library which aims to replicate standard 2d game
src/Terminal/Game/Layer/Imperative.hs view
@@ -25,9 +25,9 @@ data GEnv = GEnv { eTermDims :: Dimensions,                    eFPS :: FPS } --- | General way to create a 'Game'. This allows you more control by--- exposing 'GEnv' (allows you to e.g. adapt to screen resizes, blit--- FPS). If you fancy simple, sensible defaults, check 'simpleGame'.+-- | General way to create a game. This gives you more control by+-- exposing 'GEnv' (allowing e.g. to adapt to screen resizes, blit+-- FPS, etc.. If you fancy simple, sensible defaults, check 'simpleGame'. data Game s =         Game { gTPS           :: TPS, -- ^ Ticks per second. Since the 2D                                       -- “char canvas” is coarse, you do not@@ -37,7 +37,8 @@                gLogicFunction :: GEnv -> s -> Event -> s,                                       -- ^ Logic function.                gDrawFunction  :: GEnv -> s -> Plane,-                                      -- ^ Draw function.+                                      -- ^ Draw function. Check '***' for+                                       --  centre-blitting.                gQuitFunction  :: s -> Bool                                       -- ^ “Should I quit?” function.                                       }@@ -49,6 +50,7 @@ simpleGame :: Dimensions           -- ^ Gamescreen dimensions, in columns and                                    --   rows. Asks the player to resize their                                    --   terminal if it is too small.+                                   --   Centre-blits on bigger terminals.               -> TPS               -- ^ Ticks per second. Since the 2D “char                                    --   canvas” is coarse, you do not need                                    --   high values (e.g. 13 TPS is enough