Link Details

Link 966079 thumbnail
User 225256 avatar

By mswatcher
Published: May 08 2013 / 10:00

An exercise in the futile but fun. This is a playable version of Pong complete with working scoring system -- built entirely with CSS. Not a line a Javascript to be seen. All game logic is built using hover state and sibling selectors.
  • 10
  • 0
  • 1018
  • 639


Add your comment
User 851745 avatar

Greg Brown replied ago:

0 votes Vote down Vote up Reply

Doesn't work for me. But I'm curious to know how it could be built entirely with CSS. Doesn't there need to be some logic to make the game work (i.e. JavaScript)?

User 514369 avatar

shanse2 replied ago:

0 votes Vote down Vote up Reply

Seriously...that's amazing.

User 1052549 avatar

Lyndon Armitage replied ago:

0 votes Vote down Vote up Reply

Works horribly on Firefox for me, very cool when running in Chrome though! Including the source makes for an interesting read, I really need to familiarize myself with some of the more advanced CSS3 features!

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java