PDA

View Full Version : "Pong" alike game in DHTML



jalbam
08-22-2006, 08:50 AM
1) CODE TITLE: PunkPong

2) AUTHOR NAME/NOTES: Juan Alba Maldonado (me)

3) DESCRIPTION: PunkPong is an open source "Pong" alike game totally written in DHTML (JavaScript, CSS and HTML) that uses keyboard or mouse. This cross-platform and cross-browser game was tested under BeOS, Linux, NetBSD, OpenBSD, FreeBSD, Windows and others.

4) URL TO CODE: http://punkpong.sourceforge.net

jscheuer1
08-22-2006, 09:20 AM
Amazing!

blm126
08-22-2006, 12:14 PM
Better than I could do, but this one (http://www.dynamicdrive.com/dynamicindex12/phong2.htm) is a little better I think.

jscheuer1
08-23-2006, 04:48 AM
Better than I could do, but this one (http://www.dynamicdrive.com/dynamicindex12/phong2.htm) is a little better I think.

That one seems much too fast on my CPU. Although it doesn't let on in the description on the demo page, one would hope that the initial speed is easily configurable. A nice twist (to either version) would be to allow the user to set this variable before play.

jalbam
08-23-2006, 08:45 AM
You can modify script to ask ball speed too easy, only put a line at top of inciar_juego() function with a prompt and parseInt asking to speed and modifying variable velocidad_pelota, desplazamiento_x and desplazamiento_y, etc:
Thanks for your comments ;)

blm126
08-23-2006, 12:20 PM
That one seems much too fast on my CPU.
That's the whole point for me! I have yet to beat it.
[QUOTE=jscheuer1]
Although it doesn't let on in the description on the demo page, one would hope that the initial speed is easily configurable.
It is. There is a variable called Speed. Just set it to something else. I have taken that script apart line by line trying to figure out how it worked.

jalbam
08-28-2006, 09:43 AM
now you can download directly

jalbam
09-01-2006, 02:22 PM
You can play game online at http://www.granvino.com/jam/stuff/juegos/punkpong/english/index.htm