Archived

This topic is now archived and is closed to further replies.

Java and game development

Recommended Posts

I was just looking into Java a bit, as it comes with Visual Studio 6 Professional, and I realize how it could be pretty cool for development. Does anyone out there have any insight as to just how cool (or lame, for that matter) it could be? I''m very interested to hear. Pythius -Code God and future hardcore Java coder

Share on other sites
At the minute, Java is too slow for any depth of game development - it''s quite a nice platform/language, and if it gets faster in the future could be quite a viable tool. It''s based upon C++, which is based upon C, so from C being fast, you have a couple of levels of transition, which tends to make things slower. Still - it''s worth learning and keeping up-to-date with.

It''s just an opinion...

-Mezz

Share on other sites
Hi

Java get''s better and better, and with things like Java3D with OpenGL support, you can display 3d Grapphics with good Framerates. There are also some compilers for Java, which generate very fast code, compared to the Interpreter, but of cause you are loosing Your Plattformindependency.

Lars

Share on other sites
Actually, Java is not based on C++ it just takes some syntax from it. Java is made straight from the beginning to be OOP programming language which normal C isn''t. Java doesn''t have templates, DLLs and IT RUNS ON VIRTUAL MACHINE which converts it to processor language. These may be wrong because i can''t remember details, but it''s not build from C++ it''s invidual language, I think.

Share on other sites
Java is plenty fast enough to be used as a game scripting language.

-vince

Share on other sites
Do not use Visual J++ ! I mean it, really.
Visual J++ is a false java which produces non-crossplatform bytecode executables.
If you want to do mono-platform development with Java, use a native Java compiler and you will have a fast native program, with source-level multi-platform. If you want compiled-level multi-platform, use a real JDK.
If you use Visual J++, you will have slow a Windows-only program.

David

Share on other sites
___Err, well Altmann is right about J++ not being a good enviroment for develping TRUE java applications. But it is possible to leave out MS' nasty ActiveX hooks.
___The downside is that everything that makes J++ easy to use are the same things that you can't use to make true pltaform-unspecific code. That means the nice button layout creator cannot be used, an immense letdown especially considering that using the AWT to create an interface is a MASSIVE PAIN IN THE butt. Unfortunately I already bought this for my Java class last semester, but then again I got NT4 SP3 for $100 US! Now if I could get it to install... Edited by - SonicSilcion on 4/5/00 10:39:20 AM Share this post Link to post Share on other sites quote: Original post by SonicSilcion ___Err, well Altmann is right about J++ not being a good enviroment for develping TRUE java applications. But it is possible to leave out MS'' nasty ActiveX hooks. ___The downside is that everything that makes J++ easy to use are the same things that you can''t use to make true pltaform-unspecific code. That means the nice button layout creator cannot be used, an immense letdown especially considering that using the AWT to create an interface is a MASSIVE PAIN IN THE butt. Unfortunately I already bought this for my Java class last semester, but then again I got NT4 SP3 for$100 US! Now if I could get it to install...

Edited by - SonicSilcion on 4/5/00 10:39:20 AM

Actually my experiences about building GUIS with AWT is pretty relaxed. It''s not that hard to build gui. With all layout managers it''s easy when you once decide to learn them. Also there are many good IDEs for Java, Symantek''s, IBM''s and Borlands Java IDEs are great, but I have never used to use any of them. I just like my notepad, Java Worshop 3 and Kawa combination.

Time comes, time goes and I only am.

Share on other sites
quote:
Original post by SonicSilcion
Unfortunately I already bought this for my Java class last semester, but then again I got NT4 SP3 for \$100 US! Now if I could get it to install...

(off topic ) hey are you serious about that SP3 or am i not getting the joke ????

-kertropp

C:\Projects\rg_clue\ph_opt.c(185) : error C3142: 'PushAll' :bad idea
C:\Projects\rg_clue\ph_opt.c(207) : error C324: 'TryCnt': missing point

Share on other sites
I have used JBuilder 3 a lot - it is not bad but somewhat disappointing for a former Borland fan like me.
I have used Visual Age for Java 1 beta very briefly. It looks great but requires some unusual thinking.
I have not tried CodeWarrior''s RAD tools but the IDE is perfectly usable for Java. Although I would tend to favor Emacs + Sun''s JDK for Java development.

As for GUI building, it requires a bit of training but once you have figured out how the GridBagLayout works, it is more comfortable to write down the code than to RAD it.

I hope this helped

Share on other sites
Actually, java is becoming much faster than it was before. It still isn''t as fast as complied code, but the JVM''s are much better. Right now I am working on writing a multi-player game and both the Server and Client is written in java. I thought I would need to rewrite the Server in C but it seams to work fine under heavy use. It doesn''t use graphics on the server side, so the AWT overhead isn''t there. By the way, Symantec''s Visual Cafe is great!

If you can''t win, make sure the one that beats you breaks the record!

Share on other sites
The participants of the Java Game Development thread on this board are putting together an FAQ on the topic. We have more questions than answers right now, but some of the information may be useful to you.

http://games.cpbinc.com/FAQ/

Share on other sites
Lets think about the speed issue for a minute. Wing Commander was written for a low-end 386 (say a 33MHz 386). Doom was written for a low to mid range 486. Microsoft Flight simulator ran decently on a 486 as well. Great games like Civilization and Railraod Tycoon ran fine on a 286.

These days, CPUs are on the order of 10-20x faster (not just in terms of clock rate, but in terms of cycles per instruction, including multiple execution units that work simultaneously). So is Java on a 300MHz machine really all that slow? Assuming the hardware is twenty times faster than what was used to write Civilization, and assuming that Java is 10x slower than C++, you''re still ahead. When you stop and think that most novice games tend to be of the "Tron lightcycles" or "Tetris" variety, then the answer is, yes, Java is way more than enough.

• Forum Statistics

• Total Topics
628378
• Total Posts
2982334

• 10
• 9
• 15
• 24
• 11