Difference between revisions of "Team:Carnegie Mellon/game"

Line 857: Line 857:
 
 
 
function restart(){
 
function restart(){
 +
var temp = new Cell(false, "mainPlayer"); //NOT a computer
 +
                        _myCell.resize(temp.radius);
 
                         _myCell.destroy();
 
                         _myCell.destroy();
_myCell = new Cell(false, "mainPlayer"); //NOT a computer
+
temp.spawnCell();
_myCell.spawnCell();
+
updateDarkness(temp);
updateDarkness(_myCell);
+
                        _myCell=temp;
 
}
 
}
 
 

Revision as of 13:38, 14 July 2015

Luciferase: The Game

Home