simple export

This commit is contained in:
2023-06-05 03:21:15 +02:00
parent a508a3710f
commit cbcec7e387
2 changed files with 3 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import * as THREE from 'three';
const mazeGeometry = new THREE.BoxGeometry( 1, 1, 1 );
class MazeMesh extends THREE.InstancedMesh {
export default class MazeMesh extends THREE.InstancedMesh {
constructor( width, length, material ) {
super( mazeGeometry, material, width*length - 2 );
this.length = length
@@ -59,6 +59,4 @@ class MazeMesh extends THREE.InstancedMesh {
return -1
}
}
}
export { MazeMesh }
}