Results 1 to 8 of 8

Thread: "Pong" alike game in DHTML

  1. #1
    Join Date
    Aug 2006
    Location
    Spain
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up "Pong" alike game in DHTML

    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
    Last edited by jalbam; 08-28-2006 at 09:45 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Amazing!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Better than I could do, but this one is a little better I think.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by blm126
    Better than I could do, but this one 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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2006
    Location
    Spain
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile thanks and speed

    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

  6. #6
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    [QUOTE=jscheuer1]That one seems much too fast on my CPU.
    That's the whole point for me! I have yet to beat it.
    Quote Originally Posted by 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.

  7. #7
    Join Date
    Aug 2006
    Location
    Spain
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation file attachment

    now you can download directly

  8. #8
    Join Date
    Aug 2006
    Location
    Spain
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation online demo


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •