Live data from Hacker News

CSS Panic: Game written in HTML/CSS - no Javascript

jsdo.it

11–20 of 21 posts

Re: CSS Panic: Game written in HTML/CSS - no Javascript

#11
post #9

Very clever work. But we're back to the days of "works best in so-and-so browser". (no FF3/4 or IE9 or Opera11 support)

They never went away, a pure css game is very obviously not going to work in ie6, there is nothing for it to degrade to, some people push the standards (mostly fun experiments) and some people have to be very careful about browser support (the amazons of the world)

Re: CSS Panic: Game written in HTML/CSS - no Javascript

#13
post #12

How can one implement game logic and AI in CSS? I thought CSS can do nothing much other than styling except mouse hover property which gives some interactive elements without JS.

It has no AI, the croc's movement is scripted. CSS can do a lot more than changing style on mouse hover. Check out the pseudo-elements, the transitions, the :target selector.

Re: CSS Panic: Game written in HTML/CSS - no Javascript

#14
post #5

It doesn't work on IE9 either. Thus we see the flaw in designing programs in html/CSS there is no guarantee that what you wrote is what will happen/appear on a browser. Even worse than an untyped language. A programming language that has the programmer "suggest" commands rather than demand them.

[deleted]

Re: CSS Panic: Game written in HTML/CSS - no Javascript

#16
post #9

Very clever work. But we're back to the days of "works best in so-and-so browser". (no FF3/4 or IE9 or Opera11 support)

Sure, for experiments like this that are playing with vendor specific properties. This is an outlier.

The great thing now is, for most regular old websites, I can just write the CSS and expect it to work reasonably well in any of the latest generation browsers.

Re: CSS Panic: Game written in HTML/CSS - no Javascript

#19
post #5

It doesn't work on IE9 either. Thus we see the flaw in designing programs in html/CSS there is no guarantee that what you wrote is what will happen/appear on a browser. Even worse than an untyped language. A programming language that has the programmer "suggest" commands rather than demand them.

[deleted]
Post reply on HN