summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-12-24 17:58:20 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-12-24 17:58:20 +0100
commit25adfc618e77db9a5ee3b98ce0dab0be832efed0 (patch)
tree36ca56758ddd4674ab5a43df4b76bbfcc5a47af1 /index.js
parenta840990bdcabf45fb0d377478ba0ab27222434ae (diff)
hello kitty base done
Diffstat (limited to 'index.js')
-rw-r--r--index.js32
1 files changed, 1 insertions, 31 deletions
diff --git a/index.js b/index.js
index e43c3f2..8fe4bb9 100644
--- a/index.js
+++ b/index.js
@@ -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())