Wednesday, April 20, 2011

FYP 2 - Critique 2 Working Progress 4 (Game)

Coding (Sleeping Mode)

function sleep(milliseconds) {
hiddenInterval = setInterval(sleepwait, milliseconds);
}

function
sleepwait() {
stopSleeping();
}


function
stopSleeping() {
clearInterval(hiddenInterval);
}

0 comments:

Post a Comment