What language and libraries for the games I aim for?

Started by
4 comments, last by Serapth 12 years, 6 months ago
Hey there =)

I have some knowledge in Java, altough not much experience, and I'm currently coursing C++. I plan to start coding some games as a hobby, and I was wondering what language should I write them in and what libraries to use (absolute newbie).

Without going into much detail, the kind of games I'm aiming for are fully 2d, probably platformers or similar, with an emphasis in physics, "realistic" collision and such. Even though I don't want to stride too far from basic 2d I wouldn't mind to have some fancy graphical tools at my disposal, such as particle effects, smooth animations... etc.

What should I go for? I thought Java because I know a bit already, and since my projects won't be 3d, the limitations from Java shouldn't be of importance, right? I'd also get the benefits of portability. In case I choose Java, (or C++ if you think it's better) which open source libraries / engines should I look into for the stuff I want to make?

Thank you very much.
Advertisement
The language doesnt really matter as long as it does the job. If you know java you should propably use it unless you really want to use some c++ library (and itll make you better in c++, even though its propably a bit harder to use it)

o3o


The language doesnt really matter as long as it does the job. If you know java you should propably use it unless you really want to use some c++ library (and itll make you better in c++, even though its propably a bit harder to use it)


You can use C++ libraries with Java aswell, (or C libraries atleast, but most libraries have C bindings)
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!
Pretty much any language can take care of that. Since you're already familiar with Java, I'd say stick with that. Or, if you're interested, you can switch to C# and later on learn XNA. Either way, don't pick C++ - in this case, it would be using a first rate battleship to kill a mosquito...

As for libraries, I haven't messed much with Java but a quick search reveals LWJGL, an OpenGL wrapper. Looks promising enough, for a start. Then there is of course JMonkey, but again - battleship and mosquitoes. Something light should get you started fairly quickly, and LWJGL comes with both OpenGL and OpenAL so you're set in two departments - graphics and audio :)
"I will personally burn everything I've made to the fucking ground if I think I can catch them in the flames."
~ Gabe
"I don't mean to rush you but you are keeping two civilizations waiting!"
~ Cavil, BSG.
"If it's really important to you that other people follow your True Brace Style, it just indicates you're inexperienced. Go find something productive to do."
[size=2]~ Bregma

"Well, you're not alone.


There's a club for people like that. It's called Everybody and we meet at the bar[size=2].

"

[size=2]~

[size=1]Antheus
A good 2D Java library is Slick2D (built around LWJGL). It has a lot of features already built-in. There are also physics engines made to specifically work with it, such as MarteEngine.

http://slick.cokeandcode.com
Yeah, if you go Java, definetly check out slick.

If you go C++, check out SFML and Box2D ( for physics, if you make a platformer ).

This topic is closed to new replies.

Advertisement