A DOM-Based Snakes Game, Part I: A Final Word | 2 | WebReference

A DOM-Based Snakes Game, Part I: A Final Word | 2


A DOM-Based Snakes Game, Part II (10)

A Final Word

In this column we completed our walkthrough of the Snakes game. We explained to you in detail how to build the game's DOM and then how to load its board and objects. We reminded you how to use the setInterval() function to run the snake forever. We showed you how to move the snakes around, how to win, and how to lose. Most importantly, you now have a reference application you can always come back to and use as a source for your own exciting and attractive DOM-based applications. In this column you learned:

We also included the game's complete listing and its zipped version as well.

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: August 30, 1999
Revised: August 30, 1999

URL: http://www.webreference.com/js/column47/final.html

URL: http://www.webreference.com/js/column47/final.html