📜  vanilla js 游戏循环 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:07.633000             🧑  作者: Mango

代码示例1
function print_hello() {
  console.log("Hello!");
  // Continue playing the game - aka Recursive trigger motherfucker
  setTimeout(print_hello,500)
}

// Trigger aka Start Game
setTimeout(print_hello, 500);