在游戏开发中使用功能编程的好资源?(Good resources on using functional programming in game development? [closed])

编程入门 行业动态 更新时间:2024-10-28 06:36:27
游戏开发中使用功能编程的好资源?(Good resources on using functional programming in game development? [closed])

我对这个功能性编程范式来说很新,但到目前为止,我喜欢它。 自从我进入游戏开发之后,我想用纯功能的编程风格来编写一些游戏。 我不介意这种语言 - 不管是Erlang,Haskell,Lisp还是Ruby(我发现它支持功能编程特性)。

那么很明显,要学习功能性编程(实际上是什么),最好的建议就是学习功能语言和程序。 但是我正在寻找的是在游戏和游戏引擎(2D或3D)中使用功能编程的一些资源。

那么,你知道任何功能性编程文章/书籍/博客/关于在实际游戏中使用它的任何东西,还是使用功能性编程语言设计简单的游戏引擎,以及这个功能环境中游戏和游戏引擎之间的所有交互?

请不要建议像“开始编程简单的东西在功能和逐渐它会来找你”。 如前所述,很明显,但是我在这里问的是有关这个话题的一些资源,如果有的话。 谢谢!

I'm quite new to that functional programming paradigm, but so far I like it. Since I'm into game development, I want to try it out in writing some games in purely functional programming style. I don't mind the language - be it Erlang, Haskell, Lisp, or even Ruby (I found out it supports functional programming traits).

Well, it is obvious that to learn functional programming (in fact, anything) the best advice would be just to learn functional language and program a lot in it. But what I'm looking for are some resources on using functional programming in games and game engines (2D or 3D).

So, do you know of any functional programming articles/books/blogs/whatever about using it in actual games, or designing simple game engines with functional programming languages, and all the interaction between the game and game engine in this functional environment?

Please, don't suggest something like "just start programming simple stuff in functional and gradually it will come to you". As I said earlier, it is obvious, but what I'm asking here are some resources on the topic, if there any. Thanks!

最满意答案

那么你可以比研究一些这些haskell游戏的代码更糟糕。

其中一些使用FRP(功能反应式编程),有些人正在为游戏和其他事物做一个纯粹的,高级别的技术。 但是大多数是有效和纯功能代码的典型的汉考尔混合。

有相关内容的博客包括詹姆斯·海牙 。

注意FunGEn在第一个链接 - 虽然没有积极维护它是一个2D游戏引擎与工作的例子。

还有清洁语言,它的游戏库和漂亮的截图 。

Well, you could do worse than studying the code of some of these haskell games.

Some of these use FRP (functional reactive programming), which some people are working on as a pure, high-level technique for games and other things. But most are a typical haskellish mixture of effectful and pure functional code.

Bloggers with relevant content include James Hague.

Note FunGEn at the first link - though not actively maintained it is a 2D game engine with working examples.

There's also the Clean language with it's game library and nice screenshots.

更多推荐

本文发布于:2023-04-28 10:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330930.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:游戏开发   功能   资源   Good   resources

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!