summaryrefslogtreecommitdiff
path: root/play.js
blob: 70341ae9a7be3dc347122e3a4e8e5e4256447169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const badapple = require("./badapple.json")

const iv = setInterval(_ => {
	const frame = badapple.frames.shift()

	if (frame) {
		console.clear()
		console.log(frame)
	} else
		clearInterval(iv)
	
}, 1000 / badapple.fps)