diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 32 |
1 files changed, 1 insertions, 31 deletions
@@ -1,32 +1,2 @@ import { Engine } from "./src/engine.js" -Engine.startEngine() - -// import { start, update, draw } from "./src/main.js"; -// const fps = 60 -// -// -// /* cap the game's fps */ -// let msPrev = window.performance.now() -// const msPerFrame = 1000 / fps -// let frames = 0 -// function gameloop() { -// window.requestAnimationFrame(gameloop) -// -// const msNow = window.performance.now() -// const msPassed = msNow - msPrev -// -// if (msPassed < msPerFrame) return -// -// const excessTime = msPassed % msPerFrame -// msPrev = msNow - excessTime -// -// frames++ -// -// update() -// draw() -// } -// -// /* call functions to start the game */ -// /* the game logic can be found in src */ -// start() -// gameloop() +addEventListener("load", Engine.startEngine()) |