Targets

Uploaded an applet which can be played here.

Lwjgl applets are a pain… If anyone knows how to get a slick/lwjgl applet into just one jar file and or a HTML file, could you please let me know.

Updated to 1.6
Changes:
Added basic animations(need to look better) for shooting and hitting targets
Added bullet marks on the background when you shoot
Highscore arrows light up when hovered over

The applet hasn’t been updated yet, I’ll do that in a bit, but the downloadable version has been, The animations for hitting the targets isn’t very good, so I’m going to need to make that look nicer. Unless anyone here is good with animations, I could send you the target picture and you could do the different frames.

I could try my hand at target animations.

What do you want?

I got this on startup:
java.io.IOException: unsupported interlace method
at org.newdawn.slick.opengl.PNGImageData.readIHDR(PNGImageData.java:398)
at org.newdawn.slick.opengl.PNGImageData.init(PNGImageData.java:106)
at org.newdawn.slick.opengl.PNGImageData.loadImage(PNGImageData.java:680)
at org.newdawn.slick.opengl.CompositeImageData.loadImage(CompositeImageData.java:62)
at org.newdawn.slick.opengl.CompositeImageData.loadImage(CompositeImageData.java:43)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:277)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:231)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:171)
at org.newdawn.slick.Image.(Image.java:196)
at org.newdawn.slick.Image.(Image.java:170)
at org.newdawn.slick.Image.(Image.java:158)
at org.newdawn.slick.Image.(Image.java:136)
at javagame.Menu.init(Menu.java:80)
at javagame.Game.initStatesList(Game.java:53)
at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at javagame.Game.main(Game.java:70)

Just two separate animations of the target smashing/exploding as it is shot, one for when the head of the target is hit and another for when the body is hit. I’ll pm you a link to the image, feel free to re-design the target if you want. Thanks for the help though.

From my google search of this, I’m guessing you’re running OSX? I can’t see how I could prevent this, if anyone reading this could offer any help that would be much appreciated. I have an idea but I doubt it will work, I’ll upload a file in a minute testing it.

EDIT: Try playing here and see if this works: http://gamejolt.com/games/quick-play/10067/

Well based off of your current target this is what I got for a head shot.

http://gifninja.com/animated-gifs/339967/target

Don’t know how to post a gif so… I am use to doing most things with particles so this was different. I could add some sparks but I do not know exactly what the targets are made of. Wood would splinter more. Also, I do not know how many frames you want. Less means less memory/dl size but loss in quality.

I use Windows 7 with the latest Java 7. But the game runs anyway.

That looks really nice!Thanks so much! I’d guess the targets could be made from a clay type material so it shatters like a plate would, but what you’ve done looks really good!

Edit: I downloaded the gif and extracted the different frames, do you have a better quality version/set of frames on your pc? If not I can always recolor the targets slightly.

yup.

http://www.mediafire.com/?pn291uwapu7tyi2

8 frames all .png format.

I could do a few different versions for some variety. Want me to do one for the center? I don’t think I will have it shatter from center as you may not always hit there but instead have it sort of explode with no main center point as it will look more realistic.

Doing one for the center would be great, and yeah, not having a center point would look better.

EDIT: I’m rushing out now, I’ll upload the game with your animation later and you can see how it looks:)

Here is a center one

http://postimage.org/image/xv68tstmf/

15 frames and the little black blob in the center is actually the dust like in the other but the gif builder I used sucks and can’t do transparency.

Since you can detect where the shot is I can make one for shoulder, side and bottom to make it a little more real. Also, what style is this exactly? Shoot out looks like it is in a modern trying facility but shop looks western. I could try making some themed stuff for you to play with. Say, different targets, backgrounds, menus…I kinda want to try my hand at making some art stuff.

Link
http://www.mediafire.com/?rk489bz6ky8cjz4

Wow, thats great! I wouldn’t need one for the shoulder/sides etc as the hit only counts if it’s withing the red circles/ellipses. In all honesty, I haven’t really thought much about the style, I was hoping to eventually have different backgrounds and perhaps even different targets such as different enemies and maybe even civilians which you lose a life if you shoot. If you would be willing to do artwork for me, that would be awesome. I’m not good with art/graphics so if you would be able to make menus, different backgrounds etc that would be great!

Sure I will try for fun but I cannot guaranty anything great.

Tips: for the menu have one background and then draw stuff on top of it instead of having the background build in to all the different screens. Limit the fps. I love getting 2100fps but my cpu cries.

I’m sure anything will be better than the stuff I have at the moment though.

And ahh okay, but surely that would require more images? which uses more data than 1 single image?

Your applet is not working. It only shows a blank screen. And when I change to another tab and change back, that website appears on the space that the applet should have been on! :o (granted I have Java 6 ;D)