File: example.html

Recommend this page to a friend!
  Classes of Daniel Martinez  >  Snake Game  >  example.html  >  Download  
File: example.html
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: 9 years ago
Size: 599 bytes


Class file image Download
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<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>

<h2> Snake Game in Canvas HTML5!</h2>
	By <a href="http://www.webofilia.com">Daniel Martinez</a>
	Please, please try it in a browser that supports html5 
<div id="canvasDiv">

<script type="text/javascript">
	var snakeGame = new SnakeGame('canvasDiv');