decla-red/frontend/src/index.ts
2020-10-05 20:30:42 +02:00

16 lines
277 B
TypeScript

import { glMatrix } from 'gl-matrix';
import { Game } from './scripts/game';
import './styles/main.scss';
glMatrix.setMatrixArrayType(Array);
const main = async () => {
try {
await new Game().start();
} catch (e) {
console.error(e);
alert(e);
}
};
main();