File size: 686 Bytes
4ee4376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
import Phaser from 'phaser';
import world from './world';
import $ from 'jquery';
import jQuery from 'jquery';
import './styles/global.css';

var config = {
  gameTitle: 'OpenSC2K',
  gameURL: 'https://github.com/rage8885/OpenSC2K',
  type: Phaser.WEBGL,
  resolution: 1,
  autoRound: true,
  disableContextMenu: false,
  banner: true,
  audio: {
    noAudio: true,
  },
  render: {
    antialias: false,
    pixelArt: true,
    batchSize: 32767
  },
  scale: {
    mode: Phaser.DOM.RESIZE,
    parent: 'content',
    width: window.innerWidth,
    height: window.innerHeight,
  },
  scene: [
    world
  ]
};

window.$ = $;
window.jQuery = jQuery;
window.game = new Phaser.Game(config);