Is there any game engine in Scala? [closed]

此生再无相见时 提交于 2019-11-28 15:47:57

问题


I wonder if there are any game engine written in Scala or easily accesible from Scala?


回答1:


All the Java gaming engines are easily accessible due to easy Java integration. There are several (not sorted in any way):

  • http://www.jmonkeyengine.com/
  • http://www.13thmonkey.org/~boris/jgame/
  • https://jge.dev.java.net/
  • http://www.lwjgl.org/
  • https://sourceforge.net/projects/tjger/

A good presentation how to start coding a game in Java is Write a 3-D Game in the Java Programming Language in Less Than 50 Minutes that applies as well.

As Scala has a nice Java integration the ointerop should be easy. As mcherm pointed out, for lwjgl this has already been done. To have the nice Scala feel you could add some implicit conversions.




回答2:


I am currently working on a 3d engine in Scala: http://www.sgine.org

It still has a long way to go before it's a competitor to the major Java engines out there, but good progress is being made and more help is always appreciated. :)




回答3:


Here is an example of someone using a library like LWJGL from Scala. That seems like your best plan -- integrate with a good Java library. The integration betweeen Scala and Java is quite strong: in order to use such a library you need to integrate in "both directions": call Java code from your Scala (to do things like drawing to the screen) and also implement Java interfaces from your Scala code (to do things like responding to events). Fortunately, Scala makes it quite easy to do both.




回答4:


ScalaBox2D

It's probably not a full fledged game engine though. (I dunno I have never written large games).




回答5:


There is such engine in the works. Right now I am building a solid base with an easy to use math library to be optimized via compiler plugin. The math part is finished, including all the vectors, matrices, quaternions, rotations and projections for setting up the camera and ready to be plugged into opengl pretty much out of the box. A simple renderer will be done in a near feature. The compiler plugin will take time.

Link: Simplex3d




回答6:


There is a 2D game engine : Scage




回答7:


For java, there is also Slick2d, which is pretty far developed and still active. Integration in Scala is easy as always.



来源:https://stackoverflow.com/questions/1048801/is-there-any-game-engine-in-scala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!