Sign in to follow this  
revisited

Making the switch from java

Recommended Posts

I would first like to introduce myself in order to give you guys a little insight so without further ado:  as a kid I always wanted to be a game developer however as I grew up I always started playing less and less videogames and by the end of highschool I despised the thought of sitting behind a computer all day staring at some crazy language. Well two years later I had my first programming course (I 'm studying engineering) and it turned out that I was actually really good at it I could even keep up with the guys that had a lot of experience ( note that it was only blueJ so that doesn't really say much). Now one year after that we're being thought how to program in java using eclipse and again I'm surprisingly good at it (compared to my other classes at least) not only that but I actually enjoy myself while programming. So I did some research trying to revisit an old passion.

 

However I quickly found out that most games are programmed in python or C++ now I was wondering if any of you guys know a good tutorial to help me switch between java and one of these languages ( and help me decide which one to use). Because I can only seem to find tutorials aimed at complete beginners and they're kind of slow.

 

Thanks in advance

 

Share this post


Link to post
Share on other sites

For Python, you can read the Python Tutorial at docs.python.org, which is aimed at programmers that want to learn the language, but know about loops, variables, and classes/functions.

 

I learned C++ by reading the Stroustrup book, but that's quite old school.

 

You can also consider C# as alternative. I don't know the language, but it's a little closer to Java than C++.

Share this post


Link to post
Share on other sites
Yeah but I heard most people don't use java so if I ever want to cooperate with other developers it would probably be useful to know other languages as well right?

By the way thanks for the quick responses and sorry if my english isn't perfect.

Share this post


Link to post
Share on other sites

Java is a good general purpose language, and one can make games just using the libraries that come as standard, such as AWT and Swing.  If you need more "fire power" from the GPU then go with an API such as LWJGL.  Java also handles garbage collection and strings for you, which is quite nice for someone starting out...

 

That said, I am making a game for the Raspberry Pi using C++ and SDL1.2.  To get up to speed with SDL I bought a copy of "The Black Art of Multiplatform Game Programming" by Jazon Yamamoto. The wonderful thing about this book is that Jazon presents the code examples in a beginner-friendly way, which is very nice.  If you intend to go the C++ way then I would recommend it as a starting point.  However, I do recommending learning a little C++ first - at least know what pointers and classes are before jumping into anything else.

 

Anyway, best of luck on your development travels!

Share this post


Link to post
Share on other sites

It all depends why you want to learn another language.  Learning C++ because you want to improve your coding skills or because you want to get a job as a professional AAA games coder then fair enough.
However if you just want to make games as an indie or hobby project then stick with what you know.  It sounds like you are already doing well with Java so just use that.  You can use a games engine like libGDX and start programming multi platform games straight away. Or you can write Android apps and games without any engine in Java.

As well as Minecraft the original version of Runescape was also written in Java (think they changed to Unity for the latest version).
Also I have several contacts who work at King, Mindcandy, Wooga and Zinga who are all Java coders, so even in some big games companies are using Java.


Even if you plan to eventually become a AAA console developer you could  still consider weather you should learn to make games first or if you should learn C++ first.  I would at least consider the first option.  You already know Java so you already have the skill needed to write a game.  Once you have done this you could learn C++ by applying what you did to write your Java game in C++.

Share this post


Link to post
Share on other sites

I'll start with libgdx then thanks for all the help.

 

On a side note is there a lot of documentation for moving from the bussiness application side to the video game development side of java?

 

I've found this tutorial online http://zetcode.com/tutorials/javagamestutorial/ and also I am currently following the Fundamental 2D Game Programming With Java which the author is one of our forum members.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this