my broken 4hr game
Hello all,
Me and a buddy had a race to remake this game in 4 hours and all went well and that is done, problem is that I have converted the game to an applet when it was originaly an application and I am now loading the applet from a jar using archive="blah" code="blah", and this all works good except for one image is messed up when I do it this way. I have another version of the applet which loads the applet from outside of a jar and it works fine, here are the two applets:
Loading without jar (works fine): http://www.cyntaks.com/spikeattack
Loading with jar (background image is messed up): http://www.cyntaks.com/spikeattack2
Please give me your opinions on the game as well, I believe this is the first animated game I have completed... completely (well, almost).
Here is how I am loading/creating the image that is having trouble
VolatileImage bg = gc.createCompatibleVolatileImage(285, 380);
BufferedImage src = ImageIO.read(getClass().getResource("bg.gif"));
Graphics2D g2 = bg.createGrapics();
g2.drawImage(src, 0, 0, 285, 380,null);
//in another part of the program
Graphics2D g2 = (Graphics2D)strategy.getDrawGraphics();
g2.drawImage(bg, 0, 0, 285, 380,null);
my drawing surface is a Canvas by the way.
I'm not sure how to describe whats happening to my background when I use the jar, so it would be best to just check out both versions. Also, I forgot to say that all the other sounds/images in the program work just fine with the jar.
Thanks for any opinions and possibly a fix!

