FunGEn 1.1 → 1.1.1
raw patch · 4 files changed
+46/−22 lines, 4 filesdep ~FunGEndep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: FunGEn, base
API changes (from Hackage documentation)
- Graphics.UI.Fungen: tracewith :: (a -> String) -> a -> a
+ Graphics.UI.Fungen: tracewith :: () => (a -> String) -> a -> a
Files
- CHANGES.md +4/−0
- FunGEn.cabal +17/−17
- Graphics/UI/Fungen/Game.hs +6/−0
- README.md +19/−5
CHANGES.md view
@@ -1,3 +1,7 @@+## 1.1.1 2020-10-18++* restore support for GHC 8.6 and perhaps older versions+ ## 1.1 2020-10-18 * drop custom website, update readme
FunGEn.cabal view
@@ -1,32 +1,32 @@ name: FunGEn -version: 1.1 -synopsis: A lightweight, cross-platform, OpenGL/GLUT-based game engine. +version: 1.1.1 +synopsis: A lightweight, cross-platform, OpenGL-based game engine. description: FunGEn (Functional Game Engine) is a BSD-licensed, cross-platform, - OpenGL/GLUT-based, non-FRP game engine/framework written in - Haskell. Created by Andre Furtado in 2002, it's the oldest Haskell + OpenGL-based, non-FRP game engine written in Haskell. + Created by Andre Furtado in 2002, it's the oldest Haskell game engine, and with very few dependencies and two example games, it's one of the easiest ways to get started with Haskell game development. - + . The FunGEn library provides: - + . * Initialization, updating, removing, rendering and grouping routines for game objects - + . * Definition of a game background (or map), including texture-based maps and tile maps - + . * Reading and intepretation of the player's keyboard and mouse input - + . * Collision detection - + . * Time-based functions and pre-defined game actions - + . * Loading and displaying of 24-bit bitmap files - + . * Some debugging and game performance evaluation facilities - + . This package receives only basic maintenance (see home page). category: Game @@ -38,7 +38,7 @@ copyright: (C) 2002 Andre Furtado <awbf@cin.ufpe.br> license: BSD3 license-file: LICENSE -tested-with: GHC==8.8.4, GHC==8.10.2 +tested-with: GHC==8.6.5, GHC==8.8.4, GHC==8.10.2 build-type: Simple cabal-version: >= 1.10 @@ -109,7 +109,7 @@ examples ghc-options: -W build-depends: - FunGEn ==1.1.* + FunGEn ==1.1.1.* , GLUT , OpenGL , base @@ -124,7 +124,7 @@ examples ghc-options: -W build-depends: - FunGEn ==1.1.* + FunGEn ==1.1.1.* , GLUT , OpenGL , base @@ -139,7 +139,7 @@ examples ghc-options: -W build-depends: - FunGEn ==1.1.* + FunGEn ==1.1.1.* , GLUT , OpenGL , base
Graphics/UI/Fungen/Game.hs view
@@ -68,7 +68,13 @@ #if !MIN_VERSION_base(4,8,0) import Control.Applicative (Applicative(..)) #endif +#if MIN_VERSION_base(4,13,0) import Control.Monad +#else +import Prelude hiding (fail) +import Control.Monad.Fail (MonadFail(fail)) +import Control.Monad (ap,liftM) +#endif import Data.IORef import Text.Printf
README.md view
@@ -3,8 +3,8 @@ <a href="https://github.com/haskell-game/fungen/blob/master/examples/hello.hs#L1"><img border=0 src="site/logo.gif" title="Click to see the hello world example" style="margin-top:2em;"></a> FunGEn is a BSD-licensed, cross-platform,-OpenGL/GLUT-based, non-FRP game engine/framework written in-Haskell. Created by Andre Furtado in 2002, it's the oldest Haskell+OpenGL/GLUT-based, non-FRP game engine written in Haskell. +Created by Andre Furtado in 2002, it's the oldest Haskell game engine, and with very few dependencies and two example games, it's one of the easiest ways to get started with Haskell game development. It provides:@@ -18,15 +18,29 @@ * Time-based functions and pre-defined game actions * Loading and displaying of 24-bit bitmap files * Some debugging and game performance evaluation facilities-<!-- * Sound support (windows only, not in current release) --> -[Simon Michael](http://joyful.com) provides infrequent basic maintenance for-this package. If you'd like to take it over, contact me (`sm` on the #haskell-game IRC channel).+Limitations: +* No sound support + (consider adding + [OpenAL](http://hackage.haskell.org/package/OpenAL), + [elerea](http://hackage.haskell.org/package/elerea), or + [sdl2-mixer](http://hackage.haskell.org/package/sdl2-mixer))++[Simon Michael](http://joyful.com) (`sm` in #haskell-game) provides infrequent maintenance for this package, and chat support in #haskell-game. There is no issue tracker and no email support. [Co]maintainers wanted!+ <a href="https://github.com/haskell-game/fungen/blob/master/examples/pong/pong.hs#L1"><img border=0 src="site/pong.png" title="Click to see the pong example" style="margin-top:2em;"></a> <a href="https://github.com/haskell-game/fungen/blob/master/examples/worms/worms.hs#L1"><img border=0 src="site/worms.png" title="Click to see the worms (snake) example" style="margin-top:1em;"></a> ## Install++Install OpenGL/GLUT C libs, if not already installed on your system.+Eg on Ubuntu/Debian:+```+$ sudo apt install freeglut3-dev+```+ If you don't know whether they are already installed, try the next step and watch for "missing C library" errors.+ ### Latest released: ([changes](http://hackage.haskell.org/package/FunGEn/changelog)) ```