CSS3 Ping Pong, with scoring
11–20 of 25 posts
Re: CSS3 Ping Pong, with scoring
#12Re: CSS3 Ping Pong, with scoring
#13I like the trick of using radiobutton/hover interacting to create the scoring systems, very cool.
One improvement suggestion would be to change the player paddle image to be default when you move out of the court? Then it would feel like you could click on the Alex Walker name and see who this person is. Because atm it does not work.
Re: CSS3 Ping Pong, with scoring
#14I hate to be the inevitable nitpicking HN commenter, but this doesn't work in Firefox.
Re: CSS3 Ping Pong, with scoring
#15Thanks for the feedback. It's very much a work-in-progress and I was surprised to find it here.
It's certainly 'Chrome-centric' at the moment -- but I don't think there's any reason it shouldn't eventually work in most modern browsers.
Taking the bat off the cursor when it's outside the court area is probably a smart move. Will do.
Re: CSS3 Ping Pong, with scoring
#16Re: CSS3 Ping Pong, with scoring
#17Very nifty. Why does the ball pass through the paddle though?
CSS isn't designed for this kind of thing, so we have to work with what we have.
Re: CSS3 Ping Pong, with scoring
#18Pretty cool, has a few glitches though. Such as if you just click the ball and never move your paddle you can never be scored on unless you move your paddle
Basically, every time you move the cursor, the browser checks to see if you triggered a new hover state. If you keep still it assumes nothing has changed.
In this demo it's the thing being 'hovered over' that's doing a lot of the moving -- but the browser doesn't ever check for that.
Maybe there's a better alternative to :hover? CSS is obviously a limited toolset when it comes to this kind of thing.
The challenge is there for anyone who wants to fork it ;)
Re: CSS3 Ping Pong, with scoring
#19I hate to be the inevitable nitpicking HN commenter, but this doesn't work in Firefox.