11.08.2005 - Four Corners
I changed the rules around a good bit and added all sorts of design fluff like color transitions (I took a break from it to do the gradients), opacity fades and object resizing. I'm calling it Four Corners. Instructions on how to play can be found on the the game's page.
Lessons learned over the course of writing this game:
- MSIE doesn't support
obj.setAttribute("style","[styles]"). You have to use
obj.style.setAttribute("cssText","[styles]"). More info on Quirksmode.
- Obvious probably, but a DOM based means of clearing the innerHTML of an object is:
- In a for loop, appending created objects to a documentFragment and then appending the documentFragment to the parent object is waaaay faster than appending the created object to the parent immediately.
- The previously mentioned lexicographic sort issue.
var pos = document.all && !window.opera;would make a great bumper sticker. Alternately, replace "pos" with "wtf".
Give the game a once over and let me know if you run into any issues.
Posted by chao on November 8, 2005 @ 6:26 pm
Posted by Quentin on November 9, 2005 @ 6:37 pm
Posted by Daniel on November 22, 2005 @ 1:35 pm
Which is cool.
Posted by Simon Proctor on November 22, 2005 @ 2:40 pm
Just a thing : green gradient colors are very hard to distinguish...
Posted by David on December 1, 2005 @ 11:07 am
I was trying to get the same color in all four corners so that I could clear the board, but I gave up after 15 minutes.
I haven't checked the code out yet, but a very cool little game.
Posted by Froggie on December 5, 2005 @ 5:52 pm
Posted by Daniel on December 9, 2005 @ 10:55 am
Posted by chrisA on December 10, 2005 @ 6:08 pm
Posted by kominki on February 3, 2006 @ 10:13 pm
Comments have been closed for this post.