Mercurial > code > home > repos > typorama
view src/main.ts @ 0:6d2e2a8ac6f0 default tip
start from https://github.com/supertorpe/vite-ts-phaser-starter
author | drewp@bigasterisk.com |
---|---|
date | Sun, 13 Nov 2022 13:24:40 -0800 |
parents | |
children |
line wrap: on
line source
import { FirstGameScene } from './first-scene'; import Phaser from 'phaser'; import './style.css'; const config: Phaser.Types.Core.GameConfig = { width: 800, height: 600, type: Phaser.AUTO, parent: 'game-container', physics: { default: 'arcade', arcade: { gravity: { y: 300 }, debug: false } }, scene: [FirstGameScene] }; new Phaser.Game(config);