Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Does Unity2D/3D let you code with Java?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Spikes1471   Members   

121
Like
0Likes
Like

Posted 11 March 2014 - 05:43 PM

So does Unity let you code with Java? I want to TRY to make a game with Java. Is it possible? (In Unity)

 

EDIT: Also what engine should i use to make HTML5 Games?


Edited by Spikes1471, 11 March 2014 - 05:45 PM.


#2 jbadams   Senior Staff   

25501
Like
3Likes
Like

Posted 11 March 2014 - 05:56 PM

No. Unity allows you to program with UnityScript (which is very similar to JavaScript (which despite the name, is unrelated to Java)), C#, or Boo (which is similar to Python).

You could try libgdx if you're learning Java - it's a lower level framework, but is quite capable, very popular, and I believe can export HTML5 projects. jMonkeyEngine is also a popular choice for Java developers.


Construct 2 is a popular and easy-to-use option for creating HTML5 games. You could also look at Game Maker.

- Jason Astle-Adams


#3 Fiddler   Members   

860
Like
0Likes
Like

Posted 12 March 2014 - 03:39 AM

You might be able to use IKVM to compile Java to a .Net dll that can be used in Unity. The main caveat is that Unity is using a very old version of the Mono runtime (2.6.x IIRC, which is half a decade old), so you might hit some odd bugs.

 

That said, I am extremely impressed by how well IKVM works. 9 times out of 10 you can just grab a random Java project, compile it with IKVM and it will run on .Net on first try.


[OpenTK: C# OpenGL 4.4, OpenGL ES 3.0 and OpenAL 1.1. Now with Linux/KMS support!]





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.