https://github.com/mikewesthad/phaser-typescript
https://github.com/mikewesthad/phaser-typescript
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikewesthad/phaser-typescript
- Owner: mikewesthad
- Created: 2020-06-20T11:58:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T01:30:08.000Z (over 2 years ago)
- Last Synced: 2025-02-08T04:26:43.919Z (4 months ago)
- Language: TypeScript
- Size: 3.11 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phaser + TypeScript
This is a minimal Phaser & TypeScript template. It is configured with:
- Webpack, configured in `./config`.
- Phaser 3.
- TypeScript.
- Babel, for transpiling latest JS features to compatible code for recent browsers (see `./config`).## Installation
Make sure you have a recent version of [node](https://nodejs.org/en/download/) (and npm), open up the project and run:
```
npm install
```## Usage
See the scripts in package.json, but the following scripts are provided:
- `npm run dev`, run webpack in development mode and open up a browser with the app running.
- `npm run build`, run webpack in production mode and build the app to `./dist`.
- `npm run deploy`, build the app and push it to a GitHub pages branch within the repository.## Notes
- The game is configured to be full screen.
- The project is configured to allow JS in addition to TS.
- The `src/assets/` folder is copied over in the build process, so anything placed in there is available for loading within Phaser, see `LoadingScene`.