Lewcid.com
Site-Cube

(this Subject)
#Games
(this Time)
#7/10/2004
(this Place)
download/SIRD/java/
(this Lewey Geselowitz)

 

SIRDS Ponglet

SPonglet is a Java applet that lets you play Pong in real-time SIRDS (commonly known as 'Magic-Eye' images). This applet is a part of my AbSIRD project devoted to putting SIRDS into new an interesting places. Also try 'drawing height' using AbSIRDlet, another SIRDS based Java applet.



How to Play

This is a 1-player version of Pong. Both the front and back paddles are controled by the mouse. Try and hit the ball with the paddle as it reaches either of the two ends, the angle it bounces off will depend how it hit the paddle. Each time you hit the ball it will go a little faster and your objective is to get as many hits in as you can before you miss (the current hit count is shown in the status bar). When you miss your paddle freezes and you have to left click again to restart the game. Also you can tap the right mouse button at any time to toggle between SIRDS and height viewing mode.


About

First of all I know this app is a little rough, I wrote it mostly as a proof of concept that you can apply the SIRDS algorithum (or at least the AbSIRD approximation of that algorithum) in real-time in Java. Mostly it's for those of you who love Magic-Eye books and posters and like to see them in all kinds of interesting places like on the web. What I'm hoping is that having this applet available and putting out the source code will encourage others out there to write some interesting games that use SIRDS. To help support this idea I have also written AbSIRDlet which is a simple 'height' drawingsame using the same SIRDS code as SPonglet.

I also have a few other SIRDS applications on my AbSIRD homepage (this includes a Quake 2 mod allowing you to play the whole game in SIRDS). On that page you can also find an essay on the AbSIRD algorithumn and even a demo of how it can be implimented using pixel shaders.

If there is someone out there who would like to take the time to clean up this demo and make it a more game I would love to see it done and would be glad to help in any way I can. But it would be even better if you made up some new game of your own. Possibly adapt one of the great old classic puzzles games SIRDS.


Download

This is the builds and source code for both AbSIRDlet and SPonglet. Please note that ZDraw.java is shared between the two applets. Also keep in mind that this source code was a quick proof-of-concept hack so don't consider it for lessons on how to write good code. I only put it here to help others in writing their own SIRDS implimentations.

If you have any trouble, questions or comments please feel free to email me at lewey@lewcid.com. Also if you use this code to write your own project I would love to hear about it.

jAbSIRD.zip

Platform: Java Applet
Note: Includes source code