Personal tools

Frag

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Added the 'darcs get' command)
(Download: cleanup. how embarassing I forgot to upate this page)
Line 21: Line 21:
   
 
The code can be downloaded from
 
The code can be downloaded from
[http://hackage.haskell.org/cgi-bin/hackage-scripts/package/frag-1.1 Hackage]; it is also distributed via a Darcs repository:
+
[http://hackage.haskell.org/cgi-bin/hackage-scripts/package/frag Hackage]; it is also distributed via a Darcs repository:
:''darcs get http://code.haskell.org/frag''
 
   
[http://darcs.net Darcs] is the standard revision control system of the Haskell community.
+
darcs get http://code.haskell.org/frag
  +
  +
[[Darcs]] is the standard revision control system of the Haskell community.
   
 
== Contributions ==
 
== Contributions ==

Revision as of 23:25, 23 February 2008

Frag

Frag is a 3D first person shooting game written in Haskell, by Mun Hon Cheong. It is licensed under the GPL. The design and implementation of Frag is described in Mun's undergraduate thesis, Functional Programming and 3D Games.

Contents

1 Features

  • Yampa, a domain-specific embedded language for the programming of hybrid systems that using the concepts of Functional Reactive Programming (FRP) was used to program the game entities.
  • The Quake 3 BSP level format, Q3Map2, and the MD3 format for models and animations are used in this game.
  • Sven Panne's OpenGL binding, HOpenGL is used to render graphics.

2 Requirements

  • GHC 6.4 or greater, providing HOpenGL-2.0.
  • OpenGL drivers that support the vertex array and multitexture OpenGL extensions
  • Frag has portability problems. It is known to work on i386 and AMD64, and known not to work on big-endian systems.

3 Download

The code can be downloaded from Hackage; it is also distributed via a Darcs repository:

darcs get http://code.haskell.org/frag

Darcs is the standard revision control system of the Haskell community.

4 Contributions

Frag needs contributions from the community! Darcs send patches to Don Stewart.

Update: The problematic areas of the code seem to be BSP.hs, Curves.hs and MD3.hs: lots of explicit pointer manipulation, and non-endian-safe I/O.

5 Screenshots

Frag1.png

Frag2.png

Frag3.png

Frag4.png

Frag5.png

6 BibTeX Entry

@mastersthesis{Frag,
    author   = {Mun Hon Cheong},
    title    = {Functional Programming and 3D Games},
    year     = {2005},
    month    = {November},
    school   = {University of New South Wales},
    address  = {Sydney, Australia},
    abstract = {Games are commonly programmed in imperative languages.
                Functional languages have been known to have benefits but have
                rarely been used to program games. In this thesis we implement
                a first person shooting game in Haskell and Yampa. The merits
                of this approach are examined.}
}