r/GameDevelopment • • Jul 29 '20

Anyone here? I would like some help with Java?

/r/AskGameDevsAnything/comments/hzukac/anyone_here_i_would_like_some_help_with_java/
2 Upvotes

12 comments sorted by

1

u/plastic_machinist Jul 29 '20

From what I've heard, Minecraft was converted over mainly just as part of the transition from essentially a single-person project to something that could more easily be extended / maintained at Microsoft.

If you want to make games with Java, that's definitely something you can do, but if you're only using Java with the intention of converting it over to C++ later, you should just start with C++ from the get-go. Personally, I wouldn't *recommend* using Java, as I personally dislike it, and there are objectively fewer resources out there for doing gamedev with it. "Fewer" doesn't mean "none" though, so if you want to work with Java, work with Java.

The shortest path to being an indie dev is likely neither Java nor C++ though- you probably want to work in C#, which could mean Unity, Godot, or a number of other options. It's also (imho) a much nicer language than Java, and a lot easier to use than C++. Ultimately though, you want to just choose a language you feel comfortable using / learning, and that can work with your desired platforms.

1

u/SealLionGar Jul 29 '20

Im not gonna use Java if I can't convert it, I want to make sure my game is good. I heard that C++ is for 3D and C is common. C#, so many C languages.

1

u/plastic_machinist Jul 29 '20

Just some background- I can pretty much guarantee that you don't want to write your game in C. C was the original language, and is (basically) no longer used. C++ is C, plus a bunch of additional features. It's true that C++ is a great language, and something that many many games have been written in. It's also a *very hard language to use, with a lot of sharp corners. C# is a further evolution of the C family of languages, and is much much friendlier.

It should also be noted that none of those languages are "for 3d" in any sense- all three are general-purpose languages, and can (with the appropriate libraries) be used to build anything you want. 3d games can and have been written in all three.

I don't mean to make assumptions, but it sounds like you might be relatively new to gamedev. If you're just starting out, the best thing you can do is to just choose a language / environment that:

  1. will let you make something quickly, and

  2. has a big community of support for tutorials and other resources.

Unity is a great choice on both accounts. I'm not saying that you shouldn't write your own game from scratch, but writing your own 3d game without using an engine is generally not the best way to get started. If you do do that, you'll definitely learn a lot, but you're in for a long slow haul to get anything playable. If you go with an established engine like Unity, you can grow your programming skill bit by bit, making games along the way.

1

u/ia97lies Jul 29 '20

I do my games with Java jMonkeyEngine, Zay-Es (one of the best ECS implementation I know), dyn4j or bullet, libgdx-ai, Lemur, ... so many useful libs. I never had performance issues with java even with 20+ systems and up to 10‘000 entities I can have 1500+ frames per sec. It was always the graphic card which limited it much more as soon I start with fancy dynamic stuff like shadows. And I have an old PC actually. So it’s perfectly possible to make games with Java and have a selfexecuting exe. Even a steam integration is possible easily. But ofc C++ C# is also an option, I don’t care too much about languages. Furthermore C# is also in a VM.

1

u/SealLionGar Jul 30 '20

So your games run on Windows, Mac and more? Explain.

1

u/ia97lies Jul 30 '20

My games run on Windows, Mac and Linux. With some small effort they would even run on Android and with a bit more also on a iPhone. With JavaFx you can make selfexecutables and I upload that on steam as for game testing this is very handy.

1

u/SealLionGar Jul 30 '20

May I play one of your games? I like play testing.

1

u/ia97lies Jul 30 '20

You can playtest my top down multiplayer game battleground but alone it is probably not fun. I stopped that to be honest as it is very hard to sell a multiplayer game. just how can i sent you the steam key ?

1

u/SealLionGar Jul 30 '20

steam key? aw crap...

1

u/hillman_avenger Jul 29 '20

Most people's negative opinion of Java comes from the mid-90's when it was all slow Applets and anyone could make an online game (and thus a lot of them were slow and looked crap). Java nowadays is more than able to make any game. These days it's more about engine/framework/library choice, and each language has lots to choose from. However, if you're new to gamedev (or programming in general) then you might want to start with a more GUI-based engine. There are loads: Godot, Stride/Xenko, Cryengine, Unity, Unreal etc... all with their pros and cons.