Mercurial > code > home > repos > typorama
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main.ts Sun Nov 13 13:24:40 2022 -0800 @@ -0,0 +1,20 @@ +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); \ No newline at end of file