import { start, update, draw } from "./main.js" import { Screen } from "./engine/screen.js" import { keys, setUpKeyboard } from "./engine/keyboard.js" import { startClock } from "./engine/clock.js" export class Engine { static frame = 0 static audio static screen = new Screen() static keys = keys static bgm static startEngine() { setUpKeyboard() start() startClock() } static updateEngine() { update() draw() } static playSound(file) { let audio = new Audio(file) audio.play() } static playMusic(file) { this.bgm = new Audio(file) this.bgm.play() } }