Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Gator4k  (Read 4052 times)
0 Members and 1 Guest are viewing this topic.
Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Posted 2010-12-17 03:10:31 »

Thoughts?

http://java4k.com/index.php?action=games&method=view&gid=310

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #1 - Posted 2010-12-17 03:33:06 »

very nice !
However I find a little cruel to run over the alligators  Angry
I'm always very impressed by those neat effects of the trail in the water .. someday I'll learn how to do it !

Offline CommanderKeith
« Reply #2 - Posted 2010-12-17 03:35:29 »

Nice water wake ripples, and funny concept. I like the way the alligators look at you and blink sometimes.

What about if there were some man-eaters which were a different colour that you have to shoot or else they eat your boat?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Reply #3 - Posted 2010-12-17 04:41:12 »

Ohhhh nice idea! I like it =P

Offline Apo
« Reply #4 - Posted 2010-12-17 09:07:37 »

Can't try it

java.lang.ClassNotFoundException: G.class
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:717)
Caused by: java.net.SocketTimeoutException: Read timed out
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:150)
   at java.net.SocketInputStream.read(SocketInputStream.java:121)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
   at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:620)
   at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:568)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1187)
   at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:459)
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #5 - Posted 2010-12-17 15:48:52 »

Alas, super choppy on my Mac. We shouldn't encourage people to use Left 4k Dead style active rendering because it no longer works on Mac...

See my work:
OTC Software
Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Reply #6 - Posted 2010-12-17 16:31:24 »

Thats lame =/

Apo, If you could try again that would be awesome... I think it was because I had G.class instead of just G.
If it doesn't work again, what's your OS and browser?

Thanks for the input! This will be my only submission with active rendering anywho, I was hoping it would be smooth for everyone else since it runs smoothly on my crappy machine.

Offline avm1979
« Reply #7 - Posted 2010-12-17 16:41:21 »

Very cool, love the water effect.  Gameplay is fun, but wears thin after a level or two - would be nice if there we new mechanics introduced.  I actually found myself swirling the boat around at top speed w/o any goal in mind just to watch the waves, which was quite fun, and was disappointed when the timer ran out on me Smiley

Offline zeroone
« Reply #8 - Posted 2010-12-17 17:40:11 »

Quote
Thanks for the input! This will be my only submission with active rendering anywho, I was hoping it would be smooth for everyone else since it runs smoothly on my crappy machine.

What exactly is "active rendering" and what is the alternative?
Offline Damocles
« Reply #9 - Posted 2010-12-17 18:13:51 »

Runs smooth on my Linux Machine

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #10 - Posted 2010-12-17 19:33:23 »

Quote
Thanks for the input! This will be my only submission with active rendering anywho, I was hoping it would be smooth for everyone else since it runs smoothly on my crappy machine.

What exactly is "active rendering" and what is the alternative?
I dunno who coined the term, haha. If you look at the game template in the templates section, it basically draws everything to one graphics context and then swaps that onto another one. Like double buffering sort of. Instead just drawing directly on the context. Doing the double buffering helps deal with tearing but for some reason the latest Mac OS X Java version vomits all over the place when you do it.

If you can spare the bytes, you could put a check for the OS version.

See my work:
OTC Software
Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Reply #11 - Posted 2010-12-17 19:43:53 »

You basically create an empty image, then take the pixels as an integer array right from the image... and when you update the integer array it refreshes the image which is then drawn... thats what I did for the ripples. I assume thats the referenced technique... its used by a few games which want quick control over individual pixels.

Offline Groboclown
« Reply #12 - Posted 2010-12-18 02:40:10 »

You basically create an empty image, then take the pixels as an integer array right from the image... and when you update the integer array it refreshes the image which is then drawn... thats what I did for the ripples. I assume thats the referenced technique... its used by a few games which want quick control over individual pixels.

I'm wondering if it's because this Left 4k Dead method generates an array-backed int RGB image buffer, and the Mac OSX graphics is in a different form (perhaps floats?).  However, I can't imagine that drawImage can't perform the translation in this "active" way.  I'll experiment with a few alternate flavors and post them up on the Mac posting to see if any of them work.

Offline Apo
« Reply #13 - Posted 2010-12-18 15:22:25 »

Apo, If you could try again that would be awesome... I think it was because I had G.class instead of just G.
If it doesn't work again, what's your OS and browser?

Now it runs smooth. Little fun game.
Offline zeroone
« Reply #14 - Posted 2010-12-18 20:34:59 »

Quote
I'm wondering if it's because this Left 4k Dead method generates an array-backed int RGB image buffer, and the Mac OSX graphics is in a different form (perhaps floats?).  However, I can't imagine that drawImage can't perform the translation in this "active" way.

So, "active rendering" means to call image.setRGB() to generate each frame?
Online Riven
« League of Dukes »

JGO Overlord


Medals: 798
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #15 - Posted 2010-12-18 20:44:23 »

Active rendering means that you initiate the drawing:
   You get a component, and request the Graphics object (comp.getGraphics()) and start drawing on it.

Passive rendering means that you wait for some external code to initiate the drawing:
   Like when you call comp.repaint() and at some time later, the component's paint(Graphics g) method is invoked.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Pit

Junior Member


Projects: 2



« Reply #16 - Posted 2011-01-06 00:05:18 »

Amazing water effects and good gameplay too. It's nice how the alligators look at you, although this makes it even more heartbreaking to run over them.
Offline Pyrodragoon

Junior Member




Art calculated with java...


« Reply #17 - Posted 2011-01-06 10:33:07 »

I'd really like to know how to generate these watereffects myself.
It would push the graphics of any RPG to a new level,
especially the one I'm actually on  Wink
Is there a name for the effect or did you invent it yourself ?
Offline ClickerMonkey

JGO Coder


Medals: 20


Game Engineer


« Reply #18 - Posted 2012-11-09 01:55:59 »

Here's the source code to this silly little game, It's fairly commented if anyone cares =P

http://pastebin.com/bPuLTXiy

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (74 views)
2014-09-10 06:39:09

Tekkerue (37 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (44 views)
2014-09-07 01:13:42

Longarmx (28 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!