Marc43
Senior Newbie 
|
 |
«
Posted
2014-01-11 18:37:55 » |
|
Hello, i'm Marc43  I'm just trying to learn Java Gaming development, but i don't know from where i have to start. Sorry if i speak english bad, but i'm learning english ^^ I know Java programming, but not too much.
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #2 - Posted
2014-01-11 18:46:42 » |
|
Thanks Longarmx, i haven't read anything of that post you have gave to me (If i speak bad... sorry...) But one thing i hate of tutorials is when they write a code and don't explain the code, they think you know what are speaking about. (I'm so sorry for my english..)
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Games published by our own members! Check 'em out!
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #4 - Posted
2014-01-11 18:58:01 » |
|
Thanks trollwarrior1, i'll revise the content  :D
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Slyth2727
|
 |
«
Reply #5 - Posted
2014-01-11 20:47:46 » |
|
(I'm so sorry for my english..)
Don't worry about your English man, not everyone here is a native speaker  If you're worried about it you can put "Not a native English speaker" or something in your signature.
|
|
|
|
Phibedy
|
 |
«
Reply #6 - Posted
2014-01-11 21:10:22 » |
|
Offtopic: It's ok to do english mistakes, I always do. Indeed I don't care because if a lot of people read the wrong written word and use it either, the "wrong written word" will become the right one  And some day I will say to my kids, "Look at the word 'misstake', doesn't it look amazing, your dady made it."  Back to topic: I started game-dev with a space-invader tutorial using java2d  It's quite important to just copy code at the beginning to get a "good" coding-style/layout. Edit: By "copy code" I haven't meant control + C, you have to write it yourself.
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #7 - Posted
2014-01-11 21:16:28 » |
|
Yes but... I don't like to "copy & paste" i want to write my own code, because it's funny to see how your ideas inside your mind are now real (in your game). And when i'm learning i love to do excercises about, but maybe i have to learn first xD
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Phibedy
|
 |
«
Reply #8 - Posted
2014-01-11 21:23:58 » |
|
For example, after finishing the space-invaders tutorial, I added powerups etc myself and asteroid-levels, highscore etc. I think it's quite hard for a beginner to get some well working basis to build on  In addition it's good to see how to write oop code.
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #9 - Posted
2014-01-11 21:29:40 » |
|
The most important thing i think it is know how it works the code, and if the person who does the tutorial doesn't explains how it works.... I think it's boring, i have found this video: http://www.youtube.com/watch?v=9dzhgsVaiSoWhat do you think about it?
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Games published by our own members! Check 'em out!
|
|
Longarmx
|
 |
«
Reply #10 - Posted
2014-01-11 21:33:46 » |
|
The most important thing you want to remember is to get a firm grasp on plaing java before you begin game development. I know you said you knew some but make sure that you can write simple programs on your own before you begin to develop games.
|
|
|
|
Phibedy
|
 |
«
Reply #11 - Posted
2014-01-11 21:37:21 » |
|
The result looks nice  But I don't know how much you already know about java, so I can't tell you what's best for you 
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #12 - Posted
2014-01-11 21:39:17 » |
|
But i don't know what class of programs do, with class i want to say type of... Yes, i think you're right I had made a Rock!Paper!Scissors! with netbeans, but was easy because it's easy to make GUI
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Troubleshoots
|
 |
«
Reply #13 - Posted
2014-01-11 21:42:26 » |
|
People seem to be doubting your knowledge, so I'll lay out what you need to know: - Variables, methods, objects
- Control flow
- Basic inheritance
If you don't know the above then learn it. Anything else is a nice bonus. I started off learning the basics of game development with Java2D. Research the concepts of game development like the game loop and collision detection; find articles, videos, tutorials, you name it. Find as much information as possible and start off by making a very simple game like pong or snake. You can then move on to more advanced areas, for example tiled maps, better collision detection, animations etc. I remember spending 3 days creating a tiled map in a text file and loading it in to a game, then when I finally did it I felt awesome. After doing that I decided to use a game engine (I chose LibGDX) and that taught me a lot about OO design. Anyway, I didn't really get anywhere (except for learning about inheritance, generics and type safety) so decided to try learning OpenGL with the LWJGL binding. Here I am today, starting to get past the basics of the programmable pipeline. So to summarise: - Start off with Java2D (Swing and AWT) and learn about basic game development concepts
- Create a very simple game and then move on to slightly more advanced techniques
- Either learn to use a game engine (LibGDX is recommended), or learn OpenGL with the LWJGL binding
Note:There aren't many good resources in Java for learning how to use a game engine or learning OpenGL, so be prepared to do a lot of research.
|
Why are all OpenGL tutorials written in Brainf**k?
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #14 - Posted
2014-01-11 21:45:25 » |
|
I know about variables,methods & objects Thank you for the help i'll try to do all you are saying to me, if i do you'll see my game xD
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Troubleshoots
|
 |
«
Reply #15 - Posted
2014-01-11 21:54:06 » |
|
I know about variables,methods & objects Thank you for the help i'll try to do all you are saying to me, if i do you'll see my game xD
Everything takes a lot of time to learn. I've spent 6 months in total from starting to learn Java to getting to the stage that I'm at, so don't expect that it'll be quick and easy; sometimes it gets difficult and frustrating. The main thing is to have patience and to keep on going. Also be creative and if you want to do something, do it, no matter how long it takes. That's how I learn - I get carried away in research for a bit then I set goals and achieve them in twice the time I expect to. 
|
Why are all OpenGL tutorials written in Brainf**k?
|
|
|
Opiop
|
 |
«
Reply #16 - Posted
2014-01-12 01:05:37 » |
|
No, Java2D just isn't necessary to learn from. Why learn an API that you'll never use again for game development? Use immediate mode on OpenGL for learning the basics, because you'll most likely end up using OpenGL in the long run anyway.
Java2D is good for some stuff, but not for game development.
|
|
|
|
Drenius
|
 |
«
Reply #17 - Posted
2014-01-12 03:18:12 » |
|
It may be not the best API for game graphics, but it works for small projects and gives you a feeling for how game rendering works, without having to setup complex options etc, so it is absolutely enough for beginners.
|
|
|
|
Opiop
|
 |
«
Reply #18 - Posted
2014-01-12 03:20:46 » |
|
It's enough, but it's not useful, at least I don't think, to be teaching people and encouraging them to use it for years. A few months at most, but eventually the person just has to accept that even though Java2D is high level and nice to work with, it's not the right way to do things.
|
|
|
|
Drenius
|
 |
«
Reply #19 - Posted
2014-01-12 04:37:01 » |
|
Absolutely. Do not use it longer than necessary! But for an absolute beginner it is a good way to get at least anything on the screen.
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #20 - Posted
2014-01-12 09:04:19 » |
|
Then... the best way to learn game development it is OpenGL?
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
trollwarrior1
|
 |
«
Reply #21 - Posted
2014-01-12 09:10:11 » |
|
Absolutely no. If you're new to programming overall, you will die in there. Stick with java2d for now. Should be more than enough.
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #22 - Posted
2014-01-12 09:13:13 » |
|
One question, Java2D it is an engine or just key words of java that make "Java2D"? You understand me? xD
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #24 - Posted
2014-01-12 09:18:24 » |
|
Then, "Java2D" it's inside java programming language  I am going to make some homework, and then start to learn! Bye!
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Troubleshoots
|
 |
«
Reply #25 - Posted
2014-01-12 11:01:10 » |
|
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.
|
Why are all OpenGL tutorials written in Brainf**k?
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #26 - Posted
2014-01-12 11:15:01 » |
|
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...
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
trollwarrior1
|
 |
«
Reply #27 - Posted
2014-01-12 11:20:12 » |
|
You can post your question here  I could probably answer anything.
|
|
|
|
Marc43
Senior Newbie 
|
 |
«
Reply #28 - Posted
2014-01-12 11:22:41 » |
|
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
|
Not a native English speaker Thanks Mr.Slyth2727 (xD)
|
|
|
Troubleshoots
|
 |
«
Reply #29 - Posted
2014-01-12 11:26:32 » |
|
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...
Google/ javadoc/ nice articles are your friends. 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
Concurrency in Java. There's a lot to read.
|
Why are all OpenGL tutorials written in Brainf**k?
|
|
|
|