ansi-terminal-game: sdl-like functions for terminal applications, based on ansi-terminal

[ game, gpl, library ] [ Propose Tags ]

Library which aims to replicate standard 2d game functions (blit, ticks, timers, etc.) in a terminal setting; features double buffering to optimise performance. Aims to be cross compatible (based on "ansi-terminal", no unix-only dependencies), practical. See examples folder for some minimal programs. A full game: venzone.

[Skip to Readme]
Versions [RSS] [faq],,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log NEWS
Dependencies ansi-terminal (==0.11.*), ansi-terminal-game, array (==0.5.*), base (==4.*), bytestring (>=0.10 && <0.12), cereal (==0.5.*), clock (>=0.7 && <0.9), containers (==0.6.*), exceptions (==0.10.*), linebreak (==1.1.*), mintty (==0.1.*), mtl (==2.2.*), QuickCheck (>=2.13 && <2.15), random (==1.2.*), split (==0.2.*), temporary (==1.3.*), terminal-size (==0.3.*), timers-tick (>0.5 && <0.6), unidecode (>=0.1.0 && <0.2) [details]
License GPL-3.0-only
Copyright © 2017-2021 Francesco Ariis
Author Francesco Ariis
Category Game
Home page
Source repo head: darcs get
Uploaded by fffaaa at 2021-11-20T21:33:10Z
Distributions NixOS:, Stackage:
Executables hot-reload, balls, alone-playback, alone
Downloads 7808 total (42 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-11-20 [all 1 reports]


[Index] [Quick Jump]

Manual Flags

Automatic Flags

builds examples


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees


Readme for ansi-terminal-game-

[back to package description]

`ansi-terminal-game` is a library for creating games in a terminal setting.


- be cross platform (linux/win/mac). If you plan to have your executable
  unix only, I invite you to check brick [1] or other, more expressive
- be simple: no curses/ncurses/pdcurses/etc. dependencies, all
  functionality built on a standard input / ANSI terminal base.



- run the basic example with `cabal new-run -f examples alone`;
- check the source in `examples/Alone.hs`;
- open the 'Terminal.Game' haddock documentation (start reading from

A full game can be found at:

Other games made with a-t-g

- caverunner:
- pigafetta:
- avoidance:

If you want yours to be added to this list, write to me.


For any feedback or report, contact me at: