This project is a JavaScript-based particle system using PIXI.js for creating animated particles. It provides a configurable system for generating particle animations.
- Introduction
- Documentation
- Installation
- Usage
- Configuration
- Particle Controller
- Textures Controller
- Coins Model
- License
- Attribution
The Particle System Project is a JavaScript project that uses PIXI.js for creating particle animations. It allows you to configure various aspects of the particle system, including textures, animation behavior, and more.
The documentation for this project can be found in the docs folder. It contains the following files:
- index: The main documentation page
- config: Documentation for global variables
- stageController: Documentation for the StageController class
- particleController: Documentation for the ParticleController class
- texturesController: Documentation for the TexturesController class
- coinsModel: Documentation for the CoinsModel class
To get started with this project, follow these steps:
- Clone the project repository to your local machine:
Copy code
git clone https://github.com/your/repo.gitTo use the Particle System, you can integrate it into your JavaScript application. Here's a basic example of how to set up the particle system using the provided configuration:
Copy code
import { config } from './config/config.js';
import { StageController } from './Controllers/StageController.js';
window.onload = () => {
let stage = new StageController(config.stageSize.width, config.stageSize.height);
stage.init(config.textures, config.particleModelOptions);
};You can customize the config.js file to adjust the particle system's behavior to your requirements.
The config.js file contains the configuration options for the particle system. You can modify the following aspects:
- Stage size
- Textures for particles
- Particle model options
For a detailed explanation of the configuration options, refer to the comments in the config.js file.
The ParticleController class is responsible for creating and managing the particle system. It takes the PIXI application, textures, and options as parameters. The particle system's animation behavior can be configured in this class.
The TexturesController class manages the textures used in the particle system. It can either use textures in random order or in a specific order (ascending or descending).
The CoinsModel class represents the model for coins in the game. It allows you to configure various parameters for the coin animation, such as alpha values, speed, lifetime, and more.
This project is licensed under the MIT License - see the LICENCE file for details.
If you use this project in your own work, please include proper attribution to the original author (e.g., "This project is based on "Coins Shower" by Anoerak, licensed under the MIT License.").
