packages feed

ansi-terminal-game 1.9.0.0 → 1.9.1.0

raw patch · 6 files changed

+28/−6 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

NEWS view
@@ -1,3 +1,24 @@+1.9.1.0+-------++- This version of ansi-terminal-game introduces new ways to describe+  colours: RGB and xterm colours. You can find a description of the+  API in the “Non-standard colors” section of Haddock.+  The new functions and types are are+      data Colour a+      rgbColor, paletteColor, sRGB24, sRGB, sRGB24read     -- RGB+      xterm6LevelRGB, xterm24LevelGray, xtermSystem,       -- xterm+  Enticing as they are, they are supported only by a minority of+  terminals/multiplexers, so use them only when you are sure of the+  terminal you are targetting.+  This change was proposed /and/ implemented by José Rafael Vieira,+  whom I thank.+- Fixed a bug on `balls` example (thanks Andread Abel).+- The haskell tiny game competition is over+      https://github.com/haskell-game/tiny-games-hs+  a number of games were made with ansi-terminal-game.+- Released mer 1 mar 2023, 06:34:52+ 1.9.0.0 ------- 
ansi-terminal-game.cabal view
@@ -1,5 +1,5 @@ name:                ansi-terminal-game-version:             1.9.0.0+version:             1.9.1.0 synopsis:            sdl-like functions for terminal applications, based on                      ansi-terminal description:         Library which aims to replicate standard 2d game
example/Balls.hs view
@@ -183,7 +183,8 @@            inst :: Plane           inst = word "Press (s) to spawn" ===-                 word "Press (q) to quit"+                 word "Press (q) to quit"  ===+                 word "Resize terminal to pop balls"            trans :: Draw           trans = makeTransparent ' '
example/MainBalls.hs view
@@ -15,7 +15,7 @@             -- This could be useful to upload high scores to             -- a site, or for a game embedded in a larger pro-             -- gram, etc.-        putStrLn (bye i)+        putStrLn (bye r)     where           bye wi = "See you later!\nYou left the game with " ++                    show wi ++ " balls on screen."
example/MainHotReload.hs view
@@ -53,7 +53,7 @@     1. If your terminal has a `command` option, it is even easier.        We will use `urxvt` for this example -          find src example/ -name *.hs | entr -r urxvt -e cabal run -f examples alone+          find src example/*.hs | entr -r urxvt -e cabal run -f examples alone      2. Every time you save a source file, a terminal will be spawn with        your game running in it.  -}
src/Terminal/Game.hs view
@@ -1,8 +1,8 @@ ------------------------------------------------------------------------------- -- | -- Module      :  Terminal.Game--- Copyright   :  © 2017-2021 Francesco Ariis--- License     :  GPLv3 (see COPYING file)+-- Copyright   :  © 2017-2023 Francesco Ariis et al.+-- License     :  GPLv3 (see COPYING) -- -- Maintainer  :  Francesco Ariis <fa-ml@ariis.it> -- Stability   :  provisional