Message from JavaScript discussions

April 2019

— You could also just call action immediately

— 

const newGame = new Game(1000, 10000);
setTimeout(() => newGame.pause(), 10000);
newGame.play();

newGame.action(() => console.log('walking'), 4000);
newGame.action(() => console.log('talking'), 4000);

— Like that

— Because 1000 + 3000 = 4000

— :P

— But it would be grabbed out of queue immediately then

— Depends on what you want to do I guess

— I guess some actions SHOULD be exclusive

— Like sneezing

— And some are exclusive to others

— Like, driving and talking is ok

— But not driving and talking on phone