Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any game engine in Scala? [closed]

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

like image 742
Roman Kagan Avatar asked Jun 26 '09 12:06

Roman Kagan


People also ask

Can you make a game in Scala?

If you can write Scala, you can make games. Indigo is powered by Scala. js, and builds with sbt & Mill.

Are there any open source game engines?

Here Are Some Of The Best Open Source Game Engine. 1. Godot: Released with a mission to offer a fully integrated game development environment, Godot is considered to be one of the most powerful 2D and 3D cross-platform game engine. It is also an open source platform under the MIT License.

Is there a game engine that uses C++?

The free game engines that use C++ are: CryEngine, Esenthel, G3D Innovation Engine, Godot, idTech, Irrlicht, Leadwerks, Limon Engine, Lumberyard, Lumix Engine, OGRE, Panda 3D, PhyreEngine, Source Engine (free if your game is free), Torque 3D, Toy Engine, Unigine, Unreal Engine, and Urho3D.

What language are game engines written in?

C++ is the most popular language for creating game engines—the development environments where game programmers create and host their interactive worlds. Game engines provide the technology for every aspect of a game, from graphics, physics, and sound to the behavior of AI-powered game bots.


4 Answers

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.

like image 151
Peter Kofler Avatar answered Sep 20 '22 17:09

Peter Kofler


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. :)

like image 29
darkfrog Avatar answered Sep 18 '22 17:09

darkfrog


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.

like image 34
mcherm Avatar answered Sep 20 '22 17:09

mcherm


ScalaBox2D

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

like image 35
ePharaoh Avatar answered Sep 21 '22 17:09

ePharaoh