File: example.js

Recommend this page to a friend!
  Classes of Chi Hoang  >  JS Dots and Blocks Game  >  example.js  >  Download  
File: example.js
Role: Example script
Content type: text/plain
Description: Example script
Class: JS Dots and Blocks Game
Render and manage a 2 player dots and blocks game
Author: By
Last change:
Date: 6 years ago
Size: 190 bytes


Class file image Download
window.onload = function ready ()
  var cd = new Board(5,5,new List());
  cd.AddPlayer(new Element(cd.uid,1,0,"No.","70","20"));
  cd.AddPlayer(new Element(cd.uid,2,0,"No.","70","20"));