What type of Java do I have to learn to program games?
Nick
2015-12-01 11:18:13 UTC
So yeah, I want to program a game, but what type of java do I have to learn?
Six answers:
Robert J
2015-12-01 12:48:25 UTC
Just Java - not javascript.
However; IF you want to create apps for anything much other than Android devices, learn C (C++) instead of Java.
C is the only fully cross-platform / cross-system language that can be used for every type of device there is.
Most commercial apps and games are written in C, regardless of what they run on.
It s a complete fallacy that you *must* use java for android.
See the Marmalade system below - that s what a lot of the best-selling selling games & apps are written with, and you can use the same source code to compile for Android, iOS or desktop systems.
(And it does also support full 3D / OpenGL etc. on the majority of mobile devices as well as desktop systems).
https://www.madewithmarmalade.com/
Finn
2015-12-01 17:12:33 UTC
You'd want to learn java. Java script is a lot different. Don't get ahead of yourself, though. Before you're making a game you should be able to know the basics, and how to do things. I'd suggest checking out the youtube channel The New Boston. He's really helped me out and makes amazing, simple, short tutorials.
Chris
2015-12-01 18:49:06 UTC
You have to learn Java basics. Classes, methods, instances, arrays, static vs. dynamic, private vs. public.
Give it at least a few months to "get" all that, if not more.
Once you are ready, look into LibGDX, a game programming framework for Java.
husoski
2015-12-01 12:35:20 UTC
Java SE for desktop and web-based games. Java ME or the Android framework for mobile devices.
The plain Swing+AWT graphics are suitable for 2D gaming. I suggest learning this first. It's far easier to get a 2D game up and running. Also, on Android you are typically running on an ARM processor with no GPU, so 3D is a stretch.
Add JavaFX later for "official" 3D support, or look for a Java-based game engine.
The Java language is the same in each case. The difference is what's available in the run-time class libraries.
cpcii
2015-12-01 11:24:54 UTC
There is only one Java, you have to learn it to do the programming.
Andy T
2015-12-02 05:13:38 UTC
Programming games not much about the language but which library to bind.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.