11.20.2004 - CNG Redux
Here are some of the more amusing bits in the code:
- No DOCTYPE, HTML or HEAD elements.
- Loads of document.writes throughout the script.
- All of the game elements are text inputs!
- The BODY element is the last line in the document and appears to exist only to set the "bgcolor" and set up an onload event. It also doesn't close.
- Font tags galore.
- Evals everywhere.
As if that weren't enough to embarrass the hell out of me, it also doesn't work in anything other than MSIE, and only on Windows.
It is a pretty fun game, though, so I thought I'd revisit it. This time around it works in everything that you'd consider to be standards compliant, including Netscape 6. It's also the first game I've written under an XHTML Strict DOCTYPE and the first that doesn't use my old pal innerHTML anywhere.
Have a look: CNG Redux.
Posted by Jennifer on November 22, 2004 @ 10:23 pm
Posted by Steve on November 23, 2004 @ 1:20 pm
Comments have been closed for this post.