Spaces:
Running
Running
| 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); |