16 lines
277 B
TypeScript
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();
|