4 ms·
I posted this because I was looking for info on how to go about writing a game using Haskell, or FP for that matter. I think this at least exposes how you can
by lobo_tuerto 11y ago
I posted this because I was looking for info on how to go about writing a game using Haskell, or FP for that matter.
I think this at least exposes how you can do it, and what kind of tools it uses to accomplish it.
After I also stumbled upon this: http://elm-lang.org/guide/reactivity http://elm-lang.org/guide/reactivity
And then on this: https://github.com/evancz/elm-architecture-tutorial/ https://github.com/evancz/elm-architecture-tutorial/
- fgaaldal 11y agoObviously it depends on the game. However if you do not plan to make a straight-forward game or do not have to be fast, I highly recommend the combination SDL2 + OpenGL. It just works. - you find tons of documentation - you will run anywhere (that is obviously not trivial) In particular if you are going 2D you can skip OpenGL if speed is not a problem (yet). You then just write a small C-kernel which provides the main functionality and explore Haskell's FFI.
- efnx 11y agoCheck out the Haskell game dev reddit. https://www.reddit.com/r/haskellgamedev/ https://www.reddit.com/r/haskellgamedev/