ta-phaser
v0.0.18
Published
A package providing custom or prebuilt objects for Phaser game development.
Downloads
1,246
Readme
TA-Phaser
Description
TA-Phaser is a package providing custom or prebuilt objects for Phaser game development. It simplifies the process of creating interactive and high-performance game elements using Phaser, a popular framework for building HTML5 games.
Features
- Custom Objects: Easily integrate custom game objects into your Phaser games.
- Prebuilt Components: Access a variety of prebuilt objects that can be directly used in your projects.
- Modular Design: Import only what you need, optimizing your project's performance and size.
Installation
To use TA-Phaser, you must have Phaser installed as well. Install both Phaser and TA-Phaser using npm:
npm install phaser ta-phaser
PhaserEditor2D Launcher Setup
Install PhaserEditor2D Launcher using npm:
npm install phasereditor2d-launcher --save-dev
After installation, create a JSON file named phasereditor2d.config.json
in the root folder of your project with the following content:
Copy code
{
"skip": ["src", "types", "vite"],
"plugins": [],
"flags": ["-disable-gzip"],
"playUrl": "http://localhost:1959"
}
This configuration helps manage how PhaserEditor2D interacts with your project, including skipping certain directories and setting up the play URL.
Contributing
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests to us.
Scripts
| Command | Description | | ---------------- | --------------------------------------------- | | npm run dev | Runs the project in development mode. | | npm run build | Builds the project for production. | | npm run update | Builds the project and publishes the package. | | npm run preview | Previews the production build. | | npm run lint | Lints the source files. | | npm run lint:fix | Fixes linting errors in source files. | | npm run format | Formats the source files. | | npm run fix | Auto-fixes and formats the source files. |