Then… the best way to learn game development it is OpenGL?
Absolutely no. If you’re new to programming overall, you will die in there.
Stick with java2d for now. Should be more than enough.
One question, Java2D it is an engine or just key words of java that make “Java2D”?
You understand me? xD
A game engine is like Unity or Unreal Engine.
Java2D is a rendering API. It allows you to render stuff in 2D.
Then, “Java2D” it’s inside java programming language
I am going to make some homework, and then start to learn!
Bye!
One thing Wikipedia doesn’t point out is that you should use Swing for the GUI. If you just want to develop games, then don’t bother fully learning it (just learn about JFrame, JPanel and layouts), but if you may want to create other kinds of applications as well as games, then you might want to consider learning it.
As stated previously, OpenGL is better for developing games, however for a beginner it can be very hard to use. Start out with Java2D and maybe after 1-2 months you should ease yourself in to learning OpenGL, either with or without using a game engine.
Now i’m watching videos of “TheCherno” he explains some part of the codes but not all of the code, i hope that i’ll understand some parts of the code that i don’t understand right now…
You can post your question here I could probably answer anything.
The Thread, he doesn’t explains too much about the thread, i think it is the process, but i don’t know more about it.
And this :
try {
thread.join();
} catch(InterruptedException e) {
e.printStackTrace();
}
I haven’t seen never anything like that xD
Thread is basically what it looks like. It is like a train track. You can say that train is where you program is currently at and that train track is your code. The track can split into 2 and the train splits also. You get 2 tracks and 2 trains instead of one. Thread.join doesn’t really do anything. When you exit your program everything is cleaned up for you.
I know what you’re saying, but i don’t know what Thread does! D:
Do you have skype maybe? This is turning into short conversation instead of forum posts. Skype would be faster and all that.
Skype:marc4326
Read the page on concurrency that I posted a link to. A thread exists within a process on the CPU.
Also here’s another good resource on threads. Learn to start to do your own research before posting a question on a forum.