Re:CSS3 Ping Pong, with scoring
by nhm on Wednesday May 08, 2013 @01:00AM
(#5672583)
Very nifty. Why does the ball pass through the paddle though?
[ Parent
| on HN ]
Re:CSS3 Ping Pong, with scoring
by alexmwalker on Wednesday May 08, 2013 @04:07AM
(#5673083)
Mainly because I'm trying to fake 'collision detection' by using CSS hover. You could almost describe it as more of a 'controlled animation' than a game.
CSS isn't designed for this kind of thing, so we have to work with what we have.
You need to keep the paddle more to the left, by the end of the table. I don't know if this is a feature or a bug.
Re:CSS3 Ping Pong, with scoring
by JacksonGariety on Wednesday May 08, 2013 @02:37AM
(#5672868)
You actually cannot hit the all more than once.