Looking To Develop a 2D game for Yahoo

Hi, I’m looking to develop a 2D puzzle game for Yahoo!

I am looking for the best 2D Java game engine available for under $300. Alternatively, I hear Macromedia Flash is a possibility. Please tell me what you think is the best high-level 2D game engine to use in either Java or Flash or even Shockwave.

Thank you,
Bryan Edds

a 2d puzzle game? for simple stuff like that, the (free) JDK should be enough :stuck_out_tongue:

You got a job to program a game for Yahoo and you dont program?

I really need to network more.

What makes you think I don’t know how to program? Also, I do not have a job - I’m doing this on my own.

I would like to use some manner of 2D game API so I don’t have to interface directly with Java’s 2D library. It’s a very difficult library to use, and I don’t want to reinvent any wheels. So please, if anyoen can recommend a 2D web game library for Java, Flash, or Shockwave, let me know.

thanks

I dunno about difficult to use… IMHO it’s very easy to use. I don’t think I’ve seen any 2D graphics packages that are developed well enough to base a commercial game off of - most people just use the JDK. If you compare Java to other major programming languages, the JDK does a very good job of providing easy ways to get decent graphical output. All of the games I’ve seen on Yahoo wouldn’t need any special libraries to develop easily. If you think Java is difficult to use for your task, I would suggest looking into Flash or Shockwave instead - I’ve never used them myself, but I’ve heard that they’re very easy to work with.

It’s not really difficult per say, it’s just that I find all of Java’s standard libraries to be a huge pain in the arse :smiley:

[quote]It’s not really difficult per say, it’s just that I find all of Java’s standard libraries to be a huge pain in the arse :smiley:
[/quote]
You should definitly go with Flash or shockwave then :wink: .

I’m wondering which has speedier 2D rendering capabilities - a Java interpreted code program or a Flash program?

[quote]I’m wondering which has speedier 2D rendering capabilities - a Java interpreted code program or a Flash program?
[/quote]
Java isn’t interpreted anymore (only on startup). The code is about as fast as C++. However, if you want to use stoneage 1.0/1.1 java… bad luck - it’s interpreted and also lacks any (graphics) acceleration.

I would say that Flash and java 1.0/1.1 are about equally slow, but you can tweak java more. So if you’re willing to put alot more work in, you’ll get more speed with java. (However, writing simple 1.4+ code would be much easier and alot faster).

Really? Java isn’t interpreted on the fly by the JVM anymore? When did this happen? :open_mouth:

So it’s all compiled when the program starts? It’s all compiled to machine bytecode that the CPU can read? I just want to make sure - this is one heck of a big development for Java! Can the default JDK code access video hardware directly on Windows via DX or OGL, or does that take a special library? I heard Java games rendering is extremely slow, but if it can access either the DX or OGL interface, there should be no reason for that - especially if it’s compiled to byte code on startup.

I must be totally out of date on Java. The last I used it was 1.3 I think. It was still REALLY slow back then.

For god sake, have you never heard of JIT? It’s been this way since java 1.1. The first hotspot vm that came out with java 1.2 was horrible though. It was on the same level as interpreted code. The ms 1.1 vm used jit and was pretty fast.

Java2D uses directx behind the scenes. It’s a bit tricky to get it to work. The performance is good if you limit yourself on what you do. Transparency is bad m’kay.

JIT (just in time) compilation was added with 1.2 (iirc). That thing was tuned several times and is now called hotspot. And yes, it’s compiled down to native code :wink:

Can the default JDK access video hardware directly on
Windows via DX or OGL, or does that take a special library?

Something like that, yes. Just use java2d and try to get a managed compatible image. Java will then try to get that accelerated (eg with ddraw/d3d on windows and since 1.5 there is another testing opengl pipeline).

What works pretty well these days are games, which use opaque or bitmasked images with less than 2^16 pixels (eg 256x256). You can for example throw all hud elements into one 256x256 (or smaller) image and then pull out sub regions of that via getSubimage (for avoiding context switches). If you don’t use translucent images its a piece of cake to get 60+fps on damn old hardware (like 500mhz + some half decent graphics card).

If you take a look at the 4k games you might be a bit dissapointed by the shown performance. Heh. Just keep in mind that they are optimized for size and not for speed. My game could look much better and at the same time run more than 3 times faster, but there wasn’t any room for that :wink:

And there are also 3rd party opengl bindings for java (lwjgl/jogl), which can be used to write high performance opengl applications/games. Check out the games over at puppygames :slight_smile:

I’ve heard of JIT, but I don’t know how it works. Is that what the JVMs use by default nowadays? Are all Java applets compiled to machine code on startup by default, or must that be specified somehow? Do I have to use a special compiler, or can I use the free one from Sun?

Remember, the game must run in an applet from the internet, and not from an exe.

http://www.gamelizard.com

Those are all games I’ve developed and you can see they’re all Applets. I developed them with just the jdk, and that’s really all you need.

I am considering the Shaven Puppy Game Library. Anyone here use that?

I think Cas might have used it once or twice.

Kev

[quote]JIT (just in time) compilation was added with 1.2 (iirc).
[/quote]
The sun vm used a jit in the 1.1.8 version and probably in some of the previous one aswell.

[quote]I am considering the Shaven Puppy Game Library. Anyone here use that?
[/quote]
Then you can’t use applets because spgl uses LJWGL. You can use webstart instead. Is that an option?

well, you can using the swing/awt adapter, ofcourse it’s not as fast, but probably fast enough for an applet game ?

Are you sure? It seems like puppygames has an applet right on their website that uses LWJGL which has a game called Puppy Invaders - http://puppygames.net/

It runs right from the web in the Internet Explorer, so I assume it’s an applet of some sort…

It seems like puppygames has an applet right on their
website that uses LWJGL which has a game called Puppy
Invaders

Nah… that’s just plain awt :slight_smile:

46.0… that’s like… java 1.1?