Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sky-min/imagetoparticle

ImageToParticle
https://github.com/sky-min/imagetoparticle

mcbe-plugin particle plugin pmmp pocketmine

Last synced: about 21 hours ago
JSON representation

ImageToParticle

Awesome Lists containing this project

README

        

# Todo
- [x] roll
- [x] yaw pitch equal to entity yaw pitch

# how to use
1. In resource_packages.yml, change force_resources to true.
2. this plugin load
3. image file put at plugin_data/ImageParticle/image/
4. Enter a file name at plugin_data/ImageParticle/Images.yml
5. server reboot

[plugin_data example](https://github.com/sky-min/ImageToParticle/tree/master/example)

# API
## registerImageParticle
```php
use skymin\ImageParticle\particle\ImageParticleAPI;

/** @see skymin\ImageParticle\utils\ImageTypes for $imageType*/
ImageParticleAPI::getInstance()->registerImage(string $name, string $imageFile, int $imageType);
```

## sendImageParticle
```php
use skymin\ImageParticle\particle\ImageParticleAPI;
use skymin\ImageParticle\particle\EulerAngle;

ImageParticleAPI::getInstance()->sendParticle(string $name, EulerAngle $center, int $count, float $unit, bool $asyncEncode);
```