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(); | ||
− | + | temp.spawnCell(); | |
− | + | updateDarkness(temp); | |
− | + | _myCell=temp; | |
} | } | ||
Revision as of 13:38, 14 July 2015