Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 | import { Game as MainGame } from './scenes/Game'; import { AUTO, Game, Types } from 'phaser'; // Find out more information about the Game Config at: // https://docs.phaser.io/api-documentation/typedef/types-core#gameconfig const config: Types.Core.GameConfig = { type: AUTO, parent: 'game-container', scale: { mode: Phaser.Scale.FIT, // Fit to container autoCenter: Phaser.Scale.CENTER_BOTH, width: 1024, height: 1024, // Base size }, physics: { default: 'arcade', arcade: { gravity: { x: 0, y: 0 }, // no global gravity; using velocity debug: false// change to true if you want to see hitboxes } }, scene: [ MainGame ] }; const StartGame = (parent: string) => { return new Game({ ...config, parent }); } export default StartGame; |