2D space shooter with parralax scrolling

Hi all I've been working on a 2D shooter with lots of sprites. I use realJ and based it around alien landing from the Black art of java, initially i only used awt libaries but have updated it with JApplet and Jpanel. I have a loading progress screen that now dosen't display with the 1.4 plug-in. I've used Advanced media tracker and ripped most sprites for this, but it's not commercial. Any tips or feed back greatly appreciated. The whole lot weighs in at 1 mb so be patient.

Please find at

http://mysite.freeserve.com/rdf/Example1.html

[563 byte] By [rossdof] at [2007-9-27 22:26:59]
# 1
Sorry about the double post, got the url wrong on the first post. I'd be intrested how it runs on various platforms. The fps thing basically clamps the fps, thanks in advance.
rossdof at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 2
Also is it worth making such a big applet?
rossdof at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 3

Only had a couple seconds to look at the game. Looks good. I'll try to look again later for longer. 1meg is pretty large for an applet. Can you split the jar up? Then load your wave one stuff first, and while the person's playing that, load the rest in the background. I'm assuming most of the meg is graphics and the latter waves use different ones. Just an idea.

m

wywiwyg at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 4
Right, so you're not using a jar? Particular reason for that? That would cut the size down a bit right off the bat, plus only one http connection for downloading instead of one per file. Much faster.... Worth a try I think.m
wywiwyg at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 5
neat game, abit more work, and it'll be a pretty good game :)
Abuse at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 6
Cheers for all replys, Right i've jared the classes and images, more tips comments please. Jared version at http://mysite.freeserve.com/rdf/Example2.html
rossdof at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 7
This is one of the best shooters i've seen on this forum, the graphics help a ton, keep up the good work, btw I have the same book your reading but i'm having tons of trouble, did u know java before reading the book?
mp_fx at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 8
Is the Black art of Java a good book for learning how to make games?
javatypo at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 9
hey your site is offline!
codymanix at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 10

Yeh sorry back up at

http://mysite.freeserve.com/java1/Example1.html

>>did u know java before reading the book?

No i had no experience in java though i'd been messing around with blitz basic which is great for learning game techniques of all kinds.

The black art was a good book for me to begin learning java and oo programming.

Ross

rossdof at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 11
well my friend, thats some impressive stuff.. Nice job.
dimadoo at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 12
Nice work!!! The graphic are crisp and the actions is smooth(even on the cumbersome old workstation I'm currently using!)How long did it take? How long's the code?
DrQuincy at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 13

Hey thanks for the encouraging comments :)

It took me a couple of months as a part time project so to speak.

The codes pretty dam long not sure how long though!

As metioned before the graphics are ripped off but am looking into trying some clay/plastercine animation as my girlfriend is an artist!

Still a hundered and one improvements i should make.

I'll keep you updated with any significante revisions.

best regards ross.

rossdof at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 14

hey great game!

i noticed the annoying mousecursor. you can use this code to make the mousecursor disappear:

BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYPE_4BYTE_ABGR); // hiding the mouse cursor

setCursor(getToolkit().createCustomCursor(bi, (new Point(0,0)), "nullcursor"));

codymanix at 2007-7-7 12:58:09 > top of Java-index,Other Topics,Java Game Development...
# 15

> hey great game!

>

> i noticed the annoying mousecursor. you can use this

> code to make the mousecursor disappear:

> > BufferedImage bi = new BufferedImage(1, 1,

> BufferedImage.TYPE_4BYTE_ABGR); // hiding the mouse

> cursor

> setCursor(getToolkit().createCustomCursor(bi, (new

> Point(0,0)), "nullcursor"));

>

no need for the BufferedImage creation

according to the api documentation

* If the image to display is invalid, the cursor will be hidden (made

* completely transparent), and the hotspot will be set to (0, 0).

so this should work fine.

setCursor(getToolkit().createCustomCursor(null,new Point(0,0),"empty"));

Abusea at 2007-7-18 16:15:48 > top of Java-index,Other Topics,Java Game Development...
# 16

Thanks for this - I've been trying to work out how to get rid of the mouse pointer too.

I tried this...

BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYPE_4BYTE_ABGR);

frame.setCursor(Toolkit.getDefaultToolkit().createCustomCursor(bi, new Point(0,0),"empty"));

And it worked fine.

But I tried this...

frame.setCursor(Toolkit.getDefaultToolkit().createCustomCursor(null, new Point(0,0),"empty"));

and it gave a null pointer exception.

Regards,

Tim

TimRyanNZa at 2007-7-18 16:15:48 > top of Java-index,Other Topics,Java Game Development...