makefuture / games / accept-the-cookie / game / scenes / BootScene.js
37 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import { createSession } from '../systems/session.js?v=20260427c';

export class BootScene extends Phaser.Scene {
    constructor() {
        super('BootScene');
    }

    create() {
        const session = createSession();
        this.registry.set('session', session);
        this.scale.on('resize', () => {
            this.cameras.resize(this.scale.width, this.scale.height);
        });
        this.scene.start('ConsentScene', { session });
    }
}

static mirror of HEAD · about · clone: git clone https://git.makefuture.ro/makefuture.git