Optimize object container
This commit is contained in:
parent
b5a2ae4d0e
commit
854e5a55a1
3 changed files with 37 additions and 7 deletions
|
|
@ -1,9 +1,13 @@
|
|||
import './styles/main.scss';
|
||||
import { glMatrix } from 'gl-matrix';
|
||||
import { Game } from './scripts/game';
|
||||
import { applyArrayPlugins } from './scripts/helper/array';
|
||||
import { glMatrix } from 'gl-matrix';
|
||||
import './styles/main.scss';
|
||||
|
||||
glMatrix.setMatrixArrayType(Array);
|
||||
applyArrayPlugins();
|
||||
|
||||
new Game();
|
||||
try {
|
||||
new Game();
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue