packages feed

ansi-terminal-game 1.9.1.0 → 1.9.1.1

raw patch · 5 files changed

+22/−15 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

NEWS view
@@ -1,3 +1,9 @@+1.9.1.1+-------++- New git repository home, browse it at+    http://www.ariis.it/static/repos/stagit/ansi-terminal-game+ 1.9.1.0 ------- @@ -27,7 +33,7 @@   function:       gLogicFunction :: GEnv -> s -> Event -> Either r s - Notice the `Either r s`: `Left` means “game is over”; `Right`means-  “game continues.+  “game continues”. - To migrate a project to 1.9.0.0 you should:     - Adjust logic function to incorporate those changes.     - Get rid of your `quitFunction` in your `Game`.
README view
@@ -44,3 +44,9 @@      http://ariis.it/static/articles/mail/page.html +Contributing+------------++browse repo: http://www.ariis.it/static/repos/stagit/ansi-terminal-game/+Upload your modifications somewhere and send me an email (<fa-ml@ariis.it>).+
ansi-terminal-game.cabal view
@@ -1,7 +1,6 @@ name:                ansi-terminal-game-version:             1.9.1.0-synopsis:            sdl-like functions for terminal applications, based on-                     ansi-terminal+version:             1.9.1.1+synopsis:            cross-platform library for terminal games description:         Library which aims to replicate standard 2d game                      functions (blit, ticks, timers, etc.) in a terminal                      setting; features double buffering to optimise@@ -10,7 +9,7 @@                      no unix-only dependencies), practical.                      See @examples@ folder for some minimal programs.  A                      full game: <http://www.ariis.it/static/articles/venzone/page.html venzone>.-homepage:            http://www.ariis.it/static/articles/ansi-terminal-game/page.html+homepage:            http://www.ariis.it/static/articles/libraries/page.html#ansi-terminal-game license:             GPL-3 license-file:        COPYING author:              Francesco Ariis et al. (see AUTHORS)@@ -33,7 +32,7 @@  source-repository head     type:     git-    location: https://gitlab.com/fffaaa/ansi-terminal-game+    location: http://www.ariis.it/static/repos/stagit/ansi-terminal-game/  library   exposed-modules:     Terminal.Game
src/Terminal/Game/Layer/Imperative.hs view
@@ -37,13 +37,9 @@             -- (e.g. 13 TPS is enough for action games).         gInitState     :: s,   -- ^ Initial state of the game.         gLogicFunction :: GEnv -> s -> Event -> Either r s,-            -- ^ Logic function. @s@ is the game state while @r@-            -- is some sort of result you want to return when the-            -- game is finished.-            ---            -- If `gLogicFunction` returns 'Right' the game will-            -- continue; if it returns 'Left' the game is over-            -- (quit condition).+            -- ^ Logic function.  If `gLogicFunction` returns @Right s@+            -- the game will continue with state @s@; if it returns @Left@+            -- the game is over (quit condition).             --             -- Curious to see how @r@ can be useful? Check             -- @cabal run -f examples balls@ and@@ -71,7 +67,7 @@ -- | Entry point for the game execution, should be called in @main@. -- -- You __must__ compile your programs with @-threaded@; if you do not do--- this the game will crash at start-up. Just add:+-- this the game will crash, at start-up. Just add: -- -- @ -- ghc-options:      -threaded
src/Terminal/Game/Plane.hs view
@@ -206,7 +206,7 @@ isReversed (CellChar _ _ r _) = r
 isReversed _                  = False
 
--- | A String (@\n@ divided and ended) representing the 'Plane'. Useful
+-- | A String (@\\n@ divided and ended) representing the 'Plane'. Useful
 -- for debugging/testing purposes.
 planePaper :: Plane -> String
 planePaper p = unlines . LS.chunksOf w . map cellChar $ elemsPlane p