Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Game programming in Java? [closed]

Tags:

People also ask

Is Java still used for game development?

Java is a versatile language commonly used by small game development companies. It's powered some of the world's top iOS and Android games including Minecraft and Mission Impossible III. Plus, Java is a cross-platform language, so it runs on nearly any system including Microsoft and Linux.

Why is Java not used in gaming?

One of the biggest reasons Java and other Virtual Machine languages are not used for games is due to Garbage Collection. The same thing goes for . NET. Garbage collection has come a long ways and works great in most types of applications.

Can I create games with Java?

Java is widely used by indie game development companies and for creating mobile games. And it shouldn't come as much of a surprise, given how versatile the language is and given its rich collection of open-source material. Many of the world's top mobile games have been developed in Java.

How do you exit a game in Java?

exit(0); in Java. Wherever you have your enemy hit detection method/function, you could call System. exit(0); , thereby exiting the application on hitting the enemy.


I am looking into game programming in Java to see if it is feasible. When googling for it I find several old references to Java2D, Project Darkstar (Sun's MMO-server) and some books on Java game programming. But alot of the information seems to be several years old.

So the question I am asking, is anyone creating any games in Java SE 1.5 or above?

If so, what frameworks are used and are there any best practices or libraries available?