https://github.com/samme/phaser-rollup
Phaser 3 game template
https://github.com/samme/phaser-rollup
phaser phaser-boilerplate phaser3
Last synced: about 2 months ago
JSON representation
Phaser 3 game template
- Host: GitHub
- URL: https://github.com/samme/phaser-rollup
- Owner: samme
- License: mit
- Created: 2020-04-22T23:39:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T00:52:40.000Z (over 1 year ago)
- Last Synced: 2025-01-25T06:08:28.937Z (3 months ago)
- Topics: phaser, phaser-boilerplate, phaser3
- Language: JavaScript
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phaser 3 with Rollup 🗞
====================Getting started
---------------Clone or download this repository and install its dependencies:
```bash
git clone https://github.com/samme/phaser-rollup.git my-phaser-game
# OR
npx degit "samme/phaser-rollup" my-phaser-gamecd my-phaser-game
npm install
npm run dev
```- `npm run build` builds the application to `public/bundle.js`, along with a sourcemap file for debugging.
- `npm start` launches a server, using [serve](https://github.com/zeit/serve).
- `npm run watch` will continually rebuild the application as your source files change.
- `npm run dev` will run `npm start` and `npm run watch` in parallel.Phaser
------Set build constants in `replace()` in `rollup.config.js`.
Copy and modify `node_modules/phaser/src/phaser.js`, then alias `phaser` in `rollup.config.js`:
```js
alias({
entries: {
phaser: 'src/phaser-custom.js'
}
})
```TODO
----- [buble](https://github.com/rollup/plugins/blob/master/packages/buble)
- [commonjs](https://github.com/rollup/plugins/tree/master/packages/commonjs#options)
- [livereload](https://github.com/thgh/rollup-plugin-livereload)License
-------[MIT](LICENSE).