Finish tunnel scene
This commit is contained in:
parent
7e8ad0a125
commit
94271b2a55
4 changed files with 69 additions and 19 deletions
|
|
@ -24,7 +24,7 @@ const handleScene = async (SceneConstructor: new () => Scene) => {
|
|||
|
||||
scene.drawNextFrame(currentTime, deltaTime);
|
||||
|
||||
if ((timeSinceStart += deltaTime) > 2 * 1000) {
|
||||
if ((timeSinceStart += deltaTime) > 8 * 1000) {
|
||||
triggerIsOver();
|
||||
} else {
|
||||
requestAnimationFrame(handleFrame);
|
||||
|
|
@ -39,7 +39,7 @@ const handleScene = async (SceneConstructor: new () => Scene) => {
|
|||
|
||||
const main = async () => {
|
||||
try {
|
||||
const scenes = [TunnelScene, RainScene];
|
||||
const scenes = [RainScene, TunnelScene];
|
||||
|
||||
let i = 0;
|
||||
for (;;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue