Java as game programming language?

Started by
10 comments, last by Arch@on 24 years, 3 months ago
Ok what do you guys think about Java as game proframming language and I don''t mean applet games that you can find from every site (Asteroids, Tetris, Tic Tac Toe, Chess) I mean real standalone games that can you combine to C++ games I studied C++ and made some games with it, after I heard Java I was very interested about it and immediatly started to study it. Now I''m at the same point when I was with C++. I have totally changed to Java, it was easier to learn to me, Real OOP is very cool thing and it makes things lots of easier than in C++, If code once, run everywhere really works I''m saved from huge amount of work and Sun is still developing it to better and faster. Of course it is slower than C++ and it doesn''t have all graphical APIs and add-ons like Direct X and OpenGL. Of course it is true that Java is still lightyears away from the speed of C++ but i think it will catch it quickly, hopefully. Ok, most of you guys are arrongant C++ fanatics who won''t even look to other languages, because C++ and Assembler are the only and the best. Yeah, right. I want hear comments from people who really know Java not just people who have heard something about it and say that it sucks.
Advertisement
quote:Original post by Arch@on

Ok what do you guys think about Java as game proframming language and I don''t mean applet games that you can find from every site (Asteroids, Tetris, Tic Tac Toe, Chess) I mean real standalone games that can you combine to C++ games

I studied C++ and made some games with it, after I heard Java I was very interested about it and immediatly started to study it. Now I''m at the same point when I was with C++. I have totally changed to Java, it was easier to learn to me, Real OOP is very cool thing and it makes things lots of easier than in C++, If code once, run everywhere really works I''m saved from huge amount of work and Sun is still
developing it to better and faster. Of course it is slower than C++ and it doesn''t have all graphical APIs and add-ons like Direct X and OpenGL. Of course it is true that Java is still lightyears away from the speed of C++ but i think it will catch it quickly, hopefully.

Ok, most of you guys are arrongant C++ fanatics who won''t even look to other languages, because C++ and Assembler are the only and the best. Yeah, right. I want hear comments from people who really know Java not just people who have heard something about it and say that it sucks.



Hi,
many companies use Java as a scripting language, but not for the real important stuff. It might be of interest, John Carmack wrote something about using Java in Q3 in GD-Mag a few months ago, but don''t have it in mind anymore. I think for really big games, Java would be too slow, I might be wrong, but ....

CU

Graphix Coding @
Skullpture Entertainment
Graphix Coding @Skullpture Entertainmenthttp://www.skullpture.de
I think Java is very good to program a game.

The best parts of it, is than you can run it on any platform! (If a washing machine use java (at first java was created for this) i could run the game on it! (But it should be hard to control :-))

Im also making game in java (Rigth noe im creating a Myst style of game) And it belive it is good as C++

And about the speed...It is true than their is a difference, but for small game, like most freewae it don''t make any difference at all. And for big game, the difference is not so big!

Delisk
PS-Im sorry, but english is not my native language.
delisk@hotmail.com
I'd definitely want to program an involved game in Java. I think its very possible. Concerning technology, you'll have to limit yourself to a genre that doesn't need a super-fast computer to churn out the graphics. In my opinion I think the best java games are:


  • Jump
    Really did a good job with 3D graphics and was a blast to play No hardware acceleration at all! (I think) Of course technology was limited to solid color cubes (with some translucency now and again), but it majored in gameplay. And it was scalable ( to an extent), meaning that people on low-end machines could play it (I played it all the time at school on a 200 Mhz Compaq on full detail).
  • Frag Island(hang on a sec, I'm trying to find a good link to the site ....Got it, everything's ok now )
    Some cool technology that came about two years ago. I was pretty impressed, "This is Java!!!"
  • Graal Anything that is a faithful reproduction of a console favorite is a hit in my book.


OK that's where Java gaming is at (IMO, of course), and, being the optimist that I am, "It can only get better."

My 2 cents.

Edited by - joeG on 1/8/00 12:51:04 PM
joeG
Hmmm, I''ve studies Java and worked with it. I didn''t make a game with it or whatsoever, due to the lack of speed in java. Even with one single button you can see that there''s a delay. I have seen some demo''s of people, and some other nic things.

one of them is a program a friend of mine made, it was a rocket blasting through the universe. When I first saw this program running, I thought "that must be some pictures loaded after each other", but no.....it was all realtime rendered, and it was goodlooking!!! So many details. But...it was only a demo.....once he implemented movement in it, it was too slow to continue working on it.

I think Java is good enough to make games, especially now they have support for DirectX. But me, for myself, will never start using it for such a thing. Maybe a small game.....but that would be all.



Dance with me......

http://members.xoom.com/CJdeVos/index.htm

__Technically, Java is head to head with C++. Both offer the ability to program on multiple platforms using OOP. The real difference is in there implementation. Java is meant to be run on any platform when compiled (to bytecode) while C++ needs to be recompiled for each platform. What Java saves in recompilation time, it lacks in speed becuase the compilation needs to be "retranslated" on each platform.
__There are Java compilers out there that will make platform-specific executables. Using one of these would make any application faster.
__Unfortunately, I don''t know if these can compile Applets. Why compile an applet? Becuase using the applet class is the only natively supported way of using graphics in Java. Otherwise, your output would have to be ASCII (well, technically it''s unicode, but no OS I know of supports it.)
__The only other way to display graphics would be to use OpenGL or coding for each Graphics API for each platform.
IMO Java isn''t suitable for "real" game projects, though it might be OK for small ones.

You might be able to swing it if your game doesn''t live and die by the framerate... i.e, a turn based strategy game or RPG... but in general I think C/C++ is the way to go.

Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
Yeah, you all bring up some good points. I wouldn''t quit my day job to work on Java games, but I consider it a challenge that is worthy of taking up. Sure, Java games will be two years behind C/C++ games but there''s a lot of cool games that were made two years ago, that I wouldn''t mind playing in Java. Anyways (that last part didn''t come out real clear), just want to cast my vote with Java on being a viable platform for games. It''ll just take a little extra effort
joeG
If you are really interested in using Java, try going over to www.gamasutra.com. A while back, they had a few articles on game development using Java (including OpenGL). Just go to the features -> Programming section. Personally, I don''t use Java for games, but the articles on Gamasutra tend to be of a profressional quality and should be really helpful to your question.

This topic is closed to new replies.

Advertisement