File: index.html

Recommend this page to a friend!
  Classes of Amin   SVG Snake   index.html   Download  
File: index.html
Role: Example script
Content type: text/plain
Description: example
Class: SVG Snake
Implements the Snake game using SVG with RaphaŽl
Author: By
Last change:
Date: 13 years ago
Size: 619 bytes


Class file image Download
<html xmlns="" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Snake</title> <script type="text/javascript" src="js/raphael-min.js"></script> <script type="text/javascript" src="js/snake.js"></script> <script type="text/javascript" src="js/shortcut.js"></script> <script type="text/javascript"> window.onload = function(){ try{ var snake = new Snake("canvas");; }catch(e){ alert(e); } }; </script> </head> <body> <div id="canvas" style="width:400px; height:400px;"></div> </body> </html>