What game libraries should I use?

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 I need: - -2D graphics (preferably with simple shapes available) - -menus (I can make menus myself with shapes though) - -simple audio - -fonts (better than Gloss at least) - -keyboard input - -networking (simple direct connections between two computers) I need to be able to express my game system as declaratively as possible[0]. If the library is based on SDL/OpenGL, that would be nice[1]. This is, however, not necessary. What game libraries are the most mature and adequate for this? The only library I have used previously with Haskell is Gloss. I am not experienced in FRP, though I have read about and somewhat groked the point. I am willing to learn an FRP library. [0] I am writing it as part of a thesis in which I will look at the modularity and expressiveness of purely functional programming compared to object-oriented programming. Writing code that is technically purely functional, but in practice looks like imperative code, is sub-optimal. [1] For the thesis I am writing, I am implementing a C++ version of the same game. This will probably use SDL 2.0 and OpenGL bindings. If the Haskell version could use libraries based on that, this would make it easier for me to write my thesis. I.e., I would not have to spend time justifying that the modularity and expressiveness I am investigating is due to the chosen languages and programming paradigms, and not the libraries I use. - -- Alexander alexander@plaimi.net http://plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlLrlMoACgkQRtClrXBQc7VkiAEAnEbfjiSLovcXttmjpdD5OSFI uEMBVBJdWonY9ZMPIc8BAIAQn+YMRvGILgb8WmuB9oTWJDVZfqDMyB47qzjyfimO =YGLW -----END PGP SIGNATURE-----

On 31/01/14 12:19, Alexander Berntsen wrote:
I need: -2D graphics (preferably with simple shapes available) -menus (I can make menus myself with shapes though) -simple audio -fonts (better than Gloss at least) -keyboard input -networking (simple direct connections between two computers)
I need to be able to express my game system as declaratively as possible[0].
If the library is based on SDL/OpenGL, that would be nice[1]. This is, however, not necessary.
What game libraries are the most mature and adequate for this? The only library I have used previously with Haskell is Gloss. I am not experienced in FRP, though I have read about and somewhat groked the point. I am willing to learn an FRP library.
[0] I am writing it as part of a thesis in which I will look at the modularity and expressiveness of purely functional programming compared to object-oriented programming. Writing code that is technically purely functional, but in practice looks like imperative code, is sub-optimal. [1] For the thesis I am writing, I am implementing a C++ version of the same game. This will probably use SDL 2.0 and OpenGL bindings. If the Haskell version could use libraries based on that, this would make it easier for me to write my thesis. I.e., I would not have to spend time justifying that the modularity and expressiveness I am investigating is due to the chosen languages and programming paradigms, and not the libraries I use. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I don't have an answer for you but your requirement of ‘as declarative as possible’ clashes with ‘SDL/OpenGL’. -- Mateusz K.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 31/01/14 15:11, Mateusz Kowalczyk wrote:
I don't have an answer for you but your requirement of ‘as declarative as possible’ clashes with ‘SDL/OpenGL’. Gloss is on top of OpenGL, and it lets me express myself in a declarative manner. See [0] for an example.
[0] https://github.com/plaimi/bweakfwu. - -- Alexander alexander@plaimi.net http://plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlLrtXcACgkQRtClrXBQc7UJgAD+P5JmzyA4h89yhwdWxi2TDulc d2PUZC1dRfXxwNzoH+IA/3HkRqEL4efL7KrjENBXaAJDI4SeesDPIjDmRWGhCTb3 =tG7H -----END PGP SIGNATURE-----

FunGEn (http://joyful.com/fungen) is (amazingly) still the most mature/complete Haskell games library as far as I know. I'm curious to know if you agree, or if I'm wrong.

The Haskell bindings to SFML might be of your interest:
https://github.com/SFML-haskell/SFML
A.
On 31 January 2014 18:52, Simon Michael
FunGEn (http://joyful.com/fungen) is (amazingly) still the most mature/complete Haskell games library as far as I know. I'm curious to know if you agree, or if I'm wrong.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

My free-game package has Gloss-like but far more generalized APIs[0]. When you define some series of instructions to draw something, you can move then, turn them, or compose them without touching the insides! [0] http://hackage.haskell.org/package/free-game-1.0.1/docs/FreeGame.html#t:Pict... 2014年1月31日金曜日 21時19分22秒 UTC+9 Alexander Berntsen:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
I need: - -2D graphics (preferably with simple shapes available) - -menus (I can make menus myself with shapes though) - -simple audio - -fonts (better than Gloss at least) - -keyboard input - -networking (simple direct connections between two computers)
I need to be able to express my game system as declaratively as possible[0].
If the library is based on SDL/OpenGL, that would be nice[1]. This is, however, not necessary.
What game libraries are the most mature and adequate for this? The only library I have used previously with Haskell is Gloss. I am not experienced in FRP, though I have read about and somewhat groked the point. I am willing to learn an FRP library.
[0] I am writing it as part of a thesis in which I will look at the modularity and expressiveness of purely functional programming compared to object-oriented programming. Writing code that is technically purely functional, but in practice looks like imperative code, is sub-optimal. [1] For the thesis I am writing, I am implementing a C++ version of the same game. This will probably use SDL 2.0 and OpenGL bindings. If the Haskell version could use libraries based on that, this would make it easier for me to write my thesis. I.e., I would not have to spend time justifying that the modularity and expressiveness I am investigating is due to the chosen languages and programming paradigms, and not the libraries I use. - -- Alexander alex...@plaimi.net javascript: http://plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREIAAYFAlLrlMoACgkQRtClrXBQc7VkiAEAnEbfjiSLovcXttmjpdD5OSFI uEMBVBJdWonY9ZMPIc8BAIAQn+YMRvGILgb8WmuB9oTWJDVZfqDMyB47qzjyfimO =YGLW -----END PGP SIGNATURE----- _______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org javascript: http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Alexander Berntsen
-
Alfredo Di Napoli
-
Fumiaki Kinoshita
-
Mateusz Kowalczyk
-
Simon Michael