This commit is contained in:
parent
a3b06062ff
commit
b2d893a225
3 changed files with 368 additions and 117 deletions
|
|
@ -21,7 +21,7 @@ import { RainScene } from './scenes/rain/rain-scene';
|
|||
import { TunnelScene } from './scenes/tunnel-scene';
|
||||
import './styles/index.scss';
|
||||
|
||||
const scenes = [TunnelScene, MetaballScene, OrbitScene, RainScene, BlobScene];
|
||||
const scenes = [TunnelScene, MetaballScene, RainScene, RainScene, BlobScene, OrbitScene];
|
||||
Random.seed = 2;
|
||||
|
||||
glMatrix.setMatrixArrayType(Array);
|
||||
|
|
@ -82,7 +82,7 @@ const main = async () => {
|
|||
|
||||
try {
|
||||
let i = 0;
|
||||
for (;;) {
|
||||
for (; ;) {
|
||||
const currentScene = new scenes[i++ % scenes.length]();
|
||||
await currentScene.run(canvas, overlay);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue