Skip to content

Java or another language like C++

So I am currently learning Java because I will be using it for my CS courses here in a few months, but I really want to do game development as a hobby and have been using Java for the last week and has been difficult trying to get my game set up with Java from what I have found and feel like a game engine like unity or another would be a bit better. Thoughts?

3 points16 comments
Open on Reddit
About this post
Posted
Archived
Score
3 ยท 81% up
Kind
Text
ID
11rgrow

Author

1
posts
0
comments
0
media
View profile

16 comments

if you want to make a game, you should use an engine. unity is good and c# syntax is similar to java

6 points

Using an engine can help you a lot when it comes to actually creating a project, especially if you want to get into making money off of it. However there is also a lot to be gained from learning how to create everything from scratch.

As someone who makes games in Microsoft PowerPoint, I find that the benefits of an engine, coupled with the forced limitations that result in me making most of the game systems from scratch, have resulted in me learning a lot more about game design than if I use an engine like Unity or GameMaker.

Basically, I would put it like this:

  • If you just want to make games, then pick an engine
  • If you want to learn, stick with a more from-scratch approach
  • If you want to do both, then I would easily suggest PowerPoint. There are dozens of us. Dozens!!!
4 points

Use an engine!

The engine is up to your choice but personally I use Unity with C#. I know both Java and C# and they are 95% the same syntax.

2 points

I use Java professionally and C# for side game projects via Unity. It's been really fun!

2 points

I only use C# for everything and for game development I use XNA Framework, because I like challenges even tho learning Unity is a challenge itself.

1 points

I can attest to the this ๐Ÿ‘Œ and people also seem to claim that C# is a better language than Java, but I couldn't really tell you because I spent the majority of my earlier programming with java, so my brain is molded to it

2 points

Everyone will probably tell you to use an engine.

Personally, I'd use Java with LibGDX, C# with Monogame or the upcoming LibGDXSharp, or C++ with sfml.

1 points

I would also consider learning a language like Lua that can be integrated in your project and help you with aspects that may be more difficult to accomplish in Java.

0 points

Lua is an amazingly simple yet powerful embedded language. I support that all the way

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.