Senior programmer who has been coding in a functional style for years. I want to make an attempt on the indie games market, but I don't find any good, big platform that provides a good way to code using a functional style. And the fact Unity3D pretty much domains that market, I'm pretty much limited to C#. I wonder if there is another way?
Asked
Active
Viewed 325 times
-1
-
Is there no OpenGL setup in .NET that you could use F# with? – Patrick Hughes Jul 05 '13 at 03:10
-
Also http://gamedev.stackexchange.com/questions/1774/what-functional-language-is-most-suited-to-create-games-with?rq=1 as further material. – Sean Middleditch Jul 05 '13 at 04:01
-
1Also also, 1.7 seconds of Googling: http://www.haskell.org/haskellwiki/Game_Development. Probably linked in one or both of those GDSE articles I linked. – Sean Middleditch Jul 05 '13 at 04:02
3 Answers
0
F# works as well as C# with libraries like OpenTK and XNA.
I have not used Unity, but it seems that you can import external dlls into Unity, so you could write your core logic in F# dlls and use those classes from within Unity as well.

Jimmy
- 9,019
- 1
- 30
- 44
-1
What about OpenGL for Haskell?

MartinTeeVarga
- 2,839
- 20
- 48
-
1
-
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Vaughan Hilts Jul 05 '13 at 03:30
-
1@VaughanHilts It's not critique nor clarification request. It is an answer; it is an option for functional programmer who wants to create games. – MartinTeeVarga Jul 05 '13 at 04:08
-
1While it does provide an answer to the question, it only does so because it was a bad question that solicits these types of answers. And answering such questions promotes them as OK, since the OP still gets what they want, at the expense of the quality of the site. – House Jul 11 '13 at 21:53
-2
What about using JavaScript, there are quite a few JavaScript Game engines out there. And Javascript is functional.

Moritz Laass
- 11
- 1
-
JavaScript can be used in a functional-ish manner, but is no more functional than C# is at its core; the opposite, in fact. – Sean Middleditch Jul 05 '13 at 03:56
-
@SeanMiddleditch I wouldn't be so quick to say so. Function objects pervade most JS api's. The fact that JS provides function objects is a pretty big step. See this SO discussion. – bobobobo Jul 05 '13 at 04:40
-
@bobobobo Also Java 8 brings functional programming to procedural language, but it won't be an option for functional programmer. – MartinTeeVarga Jul 05 '13 at 04:46