News for hackers. Stuff that matters.
Re:CSS Panic: Game written in HTML/CSS - no Javascript by protez on Thursday June 09, 2011 @09:54AM (#2637122)
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.
Re:CSS Panic: Game written in HTML/CSS - no Javascript by rsoto on Thursday June 09, 2011 @10:23AM (#2637222)
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.