File: example.html

Recommend this page to a friend!
  Classes of Daniel Martinez   Snake Game   ???   Download  
File: ???
Role: Example script
Content type: text/plain
Description: example of use
Class: Snake Game
Implement the snake game using HTML 5 canvas
Author: By
Last change: comments of use
Date: 14 years ago
Size: 599 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Snake Game in Canvas HTML5!</title> <script type="text/javascript" src="snake.js"></script> </head> <body> <h2> Snake Game in Canvas HTML5!</h2> <h4> By <a href="http://www.webofilia.com">Daniel Martinez</a> </h4> <p> Please, please try it in a browser that supports html5 </p> <div id="canvasDiv"> </div> <script type="text/javascript"> var snakeGame = new SnakeGame('canvasDiv'); snakeGame.run(); </script> </body> </html>