Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Game programming in Haskell

Name: Anonymous 2009-12-27 23:05

All right /prog/, is there any comprehensive or relatively good tutorial for game programming in Haskell? Or at least some pointers about how to tackle the whole thing from a functional perspective? I'm particularly baffled at how to save game state, some say to use State monads while others say IORefs or reactive programming.

Name: saging in Haskell? 2009-12-27 23:16

Forget it, it's NP-hard.

Name: Anonymous 2009-12-27 23:51

Use IORefs in State monads. Actually, use a StateT IO monad with IORefs as the state, if you expect to be doing IO which you probably do. If you plan to use threading, use MVars instead of IORefs.

You can also save game state by using read and show on the state variable.

Name: Anonymous 2009-12-28 0:37

Whenever I study a new language, I clone the usual programmer tutorial games: Tetris, Frogger and Pacman. I downloaded some games from http://www.haskell.org/haskellwiki/Applications_and_libraries/Games and studied them. http://prog21.dadgum.com/36.html

Name: Anonymous 2009-12-28 22:23

>>3,4
Thanks.

Name: Anonymous 2009-12-29 18:05

Game programming in Haskell

Name: Relipmoc 2009-12-30 20:02


This IRC bot compiles and runs arbitrary code given to it.

irc.freenode.com #relipmoc

http://www.iso-9899.info/wiki/Relipmoc

Name: Anonymous 2009-12-30 20:03

>>7
disregard that I posted in the wrong box

Name: Anonymous 2009-12-30 20:04

>>7
`26 ?

Name: Anonymous 2011-01-31 20:36

<-- check em dubz

Name: Anonymous 2013-01-19 23:24

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List