Hey guys, finally got something about done. Thanks for all the help and tutorials. Amazing how long even the simplest of games takes. I'd love some feed back especially if anyone can get it to play on linux or mac. Haven't tried to downgrade things to 1.5 yet.

1) changed color of obstacle to make easier to see.2) added moving a obstacle.3) added some more purty fishes.4) added some inertia. 5) added instructions to main screen.6) compiled it using java 1.5 for the mac folks.7) speed things up a bit to make a tiny bit harder. added space bar move option if you don't want to use the mouse.9) adjusted hit rectangle to bring things closer.

Outstanding issues:

1) Not my type of game... yeah me too but I wanted to complete something. It does grow on you though for a simple time killer. It also help me build my frame work without frying my brain too badly.

2) Movement is bad/choppy? Can you tell me what your frame rate is? It should be 32-33 constantly.

1. The hitbox is too big. About half of the deaths didn't feel fair, since the boat wasn't touching anything.

2. I died once hitting one of those rock thingies, which happened to overlap the cave entrance graphics... I didn't notice it at all.

3. The controls are pretty weird. There is no inertia whatsoever. The movement looks like a saw tooth. Adding inertia is fortunately very easy:

a) Introduce a delta variable (e.g. dy).b) Always add gravity (e.g. dy+=1).c) When the button is pressed subtract some value from that delta. If up/down should be equally fast, multiply the gravity thing with 2 (e.g. dy-=2).d) Clamp the delta. E.g. ensure that it's <=5 and >=-5 (terminal velocity).e) Add that delta to the player's position.

That's all. With that stuff in place you'll get more natural looking smooth movements.

1) changed color of obstacle to make easier to see.2) added moving a obstacle.3) added some more purty fishes.4) added some inertia. 5) added instructions to main screen.6) compiled it using java 1.5 for the mac folks.7) speed things up a bit to make a tiny bit harder. added space bar move option if you don't want to use the mouse.9) adjusted hit rectangle to bring hits closer.

Outstanding issues:

1) Not my type of game... yeah me too but I wanted to complete something. It does grow on you though for a simple time killer. It also help me build my frame work without frying my brain too badly.

2) Movement is bad/choppy? Can you tell me what your frame rate is? It should be 32-33 constantly.

But maybe it would be more fun if you'd drop the overused press=up/else=down control scheme. E.g. direct controls (up=up, down=down), you get faster all the time, you get more points for chainging catches, etc.

It's a rather drastic change, but surprisingly little work. Give it a try if you got some time.

Doesn't really work for me in Ubuntu Linux 9.04.. While the game works at first, it freezes when I collect a fish or collide with something else.. Presumably the game would play a sound effect there, and it crashes (or freezes, rather)..

Doesn't really work for me in Ubuntu Linux 9.04.. While the game works at first, it freezes when I collect a fish or collide with something else.. Presumably the game would play a sound effect there, and it crashes (or freezes, rather)..

Mika,

So funny that you posted. I really love your taste in art work. A while back even before I started programming java, I was poking around on your website and showed my wife your cute polys. I really like those. Maybe someday if I ever go 3d. Very cool you are trying java.

As the sound crash, I stubbed out the sound to see if that is really it. If you don't mind, could you try it again? I want to see if that is what went wrong. What JRE are you using?

So funny that you posted. I really love your taste in art work. A while back even before I started programming java, I was poking around on your website and showed my wife your cute polys. I really like those. Maybe someday if I ever go 3d. Very cool you are trying java.

Hehe, cool. Yeah I'm experimenting with my platformer game project, to see how Java lends itself to game dev these days -- so far the results have been very nice. I hope to complete the game some day, and hopefully it works well enough I don't have to go back to C++..

Quote

As the sound crash, I stubbed out the sound to see if that is really it. If you don't mind, could you try it again? I want to see if that is what went wrong. What JRE are you using?

Unfortunately the game still freezes. When I switch to another tab and then back, a white screen shows, so it doesn't even paint anymore. I'm using Sun JRE 1.6u13. It could be a Linux/Ubuntu problem, but other applets (not all, though) do work..

Unfortunately the game still freezes. When I switch to another tab and then back, a white screen shows, so it doesn't even paint anymore. I'm using Sun JRE 1.6u13. It could be a Linux/Ubuntu problem, but other applets (not all, though) do work..

I guess I'll have to try it on Windows, the graphics look nice!

Thanks so much for trying. I was kind of hoping it would be as easy as switching to AudioClip instead of clip. But it sounds like something is going on with collision detection, browser, build etc. Weird that it would work on one version of linux per an above post. Not even sure how I would debug it. *shrug*. Guess that is the problem with being a slave to MS.

Lots of fun, big problem, though: on Mac once a sound plays it continues playing repeatedly, even after I close the applet. Like they're still playing now, I just muted my sound. Also, it never really gets more difficult. Could you slowly add more obstacles or make the tunnel a little narrower?

Lots of fun, big problem, though: on Mac once a sound plays it continues playing repeatedly, even after I close the applet. Like they're still playing now, I just muted my sound. Also, it never really gets more difficult. Could you slowly add more obstacles or make the tunnel a little narrower?

Demon,

Thanks for playing. I just changed the audio code and implemented audioclip. Could you retest for the sound for me?

Oh, sou sweet that little submarine Very nice graphics!The first time I tried to evade the fishes. Maybe a a hint "catch the fishes" could make this clear. It seems to be an endless game or does it become more difficult after 100 fishes? -I stopped with 25. I would prefer a leveled game where the it get more and more difficult -eg. every 10th fish.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org