This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File | |
fun parseFile(name: String): List<String> = | |
File("../res/$name.input").readLines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const animationRate = 30; // 30 ms | |
let initialTime, elapsedTime; | |
function animate(deltaT) { | |
// calculate object positions based on deltaT | |
} | |
function onFrame() { | |
const currentTime = new Date().getTime(); |
NewerOlder