I wonder if it is currently possible to write games in Haskell with Helm or any other engine that run on the browser through GHCJS?
4
-
3It would be awesome.– Lay GonzálezFeb 5, 2015 at 23:44
-
1You should try it and publish your results! I'd be interested to know.– Alexander ViethFeb 6, 2015 at 0:17
-
I might. I guess my first step will be to learn Netwire. If I do something cool, I will share. For now, I think that maybe the WebKit binding could be the way to go.– Lay GonzálezFeb 6, 2015 at 2:46
-
@AlexanderVieth I found someone who didn't use WebKit but WebGl. See my own answer below.– Lay GonzálezFeb 6, 2015 at 21:10
Add a comment
|
2 Answers
Here's Pong in Elm.
And not a full game, but a turtle swimming
Mario walking around and jumping.
Here's a recent "Brief and Partial Review of Haskell in the Browser"
-
8But note that Elm is very much not Haskell (in my opinion, it is a vastly inferior language with a very nice framework).– CactusFeb 6, 2015 at 2:04
-
@Cactus, Elm's compiler is written in Haskell, so clearly the Elmers have a more positive view of Haskell than you do of Elm.– dfeuerFeb 6, 2015 at 4:25
-
1I would agree that Elm is inferior to Haskell, but I would save the phrase 'vastly inferior' for describing JavaScript. :-D Jun 18, 2015 at 16:21
Well, I found this: A game in Haskell with Sodium FRP & GHCJS
-
Still, I plan to write my own little game in Haskell + GHCJS + Netwire. When done, I'll publish the src. Feb 6, 2015 at 21:23
-