Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reydvires/phaser3-component-pattern
https://github.com/reydvires/phaser3-component-pattern
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/reydvires/phaser3-component-pattern
- Owner: ReydVires
- Created: 2021-04-01T00:48:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T04:49:14.000Z (about 3 years ago)
- Last Synced: 2023-03-08T08:17:14.485Z (over 1 year ago)
- Language: TypeScript
- Size: 1.96 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phaser 3 Typescript Template
## Quickstart
1. Download this repo
2. Install all your dependencies by run `npm install`
3. Run your dev server by `npm run dev`
4. Make changes under `LoadingSceneController.ts` if you want to load some assets
5. Make changes under `GameplaySceneController.ts` for your main gameplay script
6. Make changes under `src/index.ts` if you want to add new scene## CLI
In `package.json` file and section `scripts` listed handy commands to help your development process. You can add more if needed.
| script | details |
| ------ | ------- |
| `npm run dev` | Start your development server in port 8080 (if available), also notice that folder `src/assets` is served as public static folder
| `npm run build` | Build your project into `dist/` folder
| `npm run dist` | Run static server from your `dist/` folder## ESlint
For update [eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/docs/rules)