makefuture / games / accept-the-cookie / game / main.js
77 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { BootScene } from './scenes/BootScene.js?v=20260427c';
import { ConsentScene } from './scenes/ConsentScene.js?v=20260427c';
import { RevealScene } from './scenes/RevealScene.js?v=20260427c';
import { ArcadeScene } from './scenes/ArcadeScene.js?v=20260427c';

const game = new Phaser.Game({
    type: Phaser.AUTO,
    parent: 'game',
    backgroundColor: '#080808',
    scale: {
        mode: Phaser.Scale.RESIZE,
        width: window.innerWidth,
        height: window.innerHeight,
    },
    physics: {
        default: 'arcade',
        arcade: {
            gravity: { y: 980 },
            debug: false,
        },
    },
    render: {
        antialias: true,
        pixelArt: false,
    },
    scene: [
        BootScene,
        ConsentScene,
        ArcadeScene,
        RevealScene,
    ],
});

window.acceptTheCookieGame = game;

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