TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Practical, Pure Functional Game Engine

29 点作者 DrDimension超过 10 年前

2 条评论

roryokane超过 10 年前
I think you should add a code example to the README, to communicate the flavor of the engine. Seeing code reassures me that the engine and its API is not unnecessarily verbose. `BlazeDispatchers.fs`’s `EnemyModule.tickHandler (<a href="https://github.com/bryanedds/FPWorks/blob/master/BlazeVector/BlazeVector/BlazeVector/BlazeDispatchers.fs#L83-L89" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bryanedds&#x2F;FPWorks&#x2F;blob&#x2F;master&#x2F;BlazeVector...</a>) would be a good example, as it also demonstrates the engine’s functional style of being passed and returning a `world`. You should also link to the folder <a href="https://github.com/bryanedds/FPWorks/tree/master/BlazeVector/BlazeVector/BlazeVector" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bryanedds&#x2F;FPWorks&#x2F;tree&#x2F;master&#x2F;BlazeVector...</a> right below the code snippet so that people can easily see more code examples and see the structure of a whole program’s code.<p>Also, after reading that you have a custom Ianguage (Aml), I wanted to see what code looks like in this language, but I couldn’t find any code examples. I even downloaded `AmlSpec.rtf`, but all I saw when scanning through it was one-line examples to show the syntax, not real examples that show when and why you would use it. If you have examples, you should link to them from where you talk abut Aml in the README.<p>(I also created a pull request to improve the formatting in `AmlSpec.rtf`: <a href="https://github.com/bryanedds/FPWorks/pull/6" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bryanedds&#x2F;FPWorks&#x2F;pull&#x2F;6</a> .)
评论 #8346712 未加载
DrDimension超过 10 年前
Currently it&#x27;s only 2D due to scoping decisions, but could do 3D no sweat if I could find the resources :)