Out Run 4K [Work In Progress]

http://meatfighter.com/java4k2011/outrun4k/

Really good! ;D

Didn’t work :frowning:

load: class a.class not found.
java.lang.ClassNotFoundException: a.class
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	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(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://meatfighter.com/java4k2011/outrun4k/a/class.class
	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)
	... 9 more
Exception: java.lang.ClassNotFoundException: a.class

That is an immensely frustrating game. If I hit the back of a car I get flung back through other cars, and I seem to have two speeds: stopped or moving, which means that passing the first big cluster of cars if I don’t get perfectly lined up I have to sit and let them get away from me to have space to steer back into line.

http://meatfighter.com/java4k2011/outrun4k/a/class.class ???

That looks like a bug in the Sun class loader :o

Java version? Browser version? OS?

It’s a very well known bug (so familiar that I didn’t realise it was a bug until I just looked at the doc). The tag’s code attribute shouldn’t end in .class, despite what the doc says.

The plugin basically does a heuristic… it makes more and more variations of that the URL might be like, until it runs out. It’s a big mess, but it’s probably there for backwards-compatibility.

[quote]It’s a very well known bug (so familiar that I didn’t realise it was a bug until I just looked at the doc). The tag’s code attribute shouldn’t end in .class, despite what the doc says.
[/quote]
I updated my web pages, omitting .class in the applet tags. I assumed that it was failing under Mac OS X because of pack200. If it is due to this, then that’s actually great news. I thought I was going to have to deploy an uncompressed version as well.

Maybe so. Now it can’t find class a… so it could be pack200.

[quote]Maybe so. Now it can’t find class a… so it could be pack200.
[/quote]
Write once, run anywhere, right? Ugh.

I made it to the Ice track :slight_smile:

http://www.youtube.com/v/wsrmo9Js8d0?fs=1&hl=en_US

Oooh, those cars that swerve into you!!! Brilliant frustrating fun!

Good job!! I am still amazed how you did that 3D stuff without using any 3D libraries!

zeroone is no stranger to homegrown 3D. If you think this is cool, you should check out his labyrinth post … http://meatfighter.com/labyrinth/

Thanks a bunch! However, that is too complicated for me to understand :stuck_out_tongue:
Lacunarity? Gamma?! FBM?!? Fractional Brownian Motion?!?!
I thought I was quite a good programmer until I saw that :frowning:

[quote]Thanks a bunch! However, that is too complicated for me to understand
Lacunarity? Gamma?! FBM?!? Fractional Brownian Motion?!?!
[/quote]
When I get a chance, I will post a detailed description of the algorithm. Until then, my other post on 3D graphics, http://meatfighter.com/juggler/, may provide some insight.

When I get a chance, I will post a detailed description of the algorithm. Until then, my other post on 3D graphics, http://meatfighter.com/juggler/, may provide some insight.
[/quote]
Dude I’m still in 10th grade in High School and I just started trigonometry!
All this advanced math (calculus!!) is too much. I guess I will have to wait until I learn all this in school sigh :frowning:

[quote]Dude I’m still in 10th grade in High School and I just started trigonometry!
All this advanced math (calculus!!) is too much. I guess I will have to wait until I learn all this in school sigh
[/quote]
Doh!

There is actually very little calculus involved. It’s mainly trigonometry, geometry and linear algebra. Pay attention in trig class. :slight_smile:

Doh!

There is actually very little calculus involved. It’s mainly trigonometry, geometry and linear algebra. Pay attention in trig class. :slight_smile:
[/quote]
Ooooh I LOVE trig. In fact I LOVE math! :slight_smile: