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
 

Contents

Class file image Download
<html xmlns="http://www.w3.org/1999/xhtml" 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"); snake.play(); }catch(e){ alert(e); } }; </script> </head> <body> <div id="canvas" style="width:400px; height:400px;"></div> </body> </html>