Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethereumdegen/bevy_hanabi_loader
Standard protocol for loading and saving hanabi particle effects
https://github.com/ethereumdegen/bevy_hanabi_loader
Last synced: 15 days ago
JSON representation
Standard protocol for loading and saving hanabi particle effects
- Host: GitHub
- URL: https://github.com/ethereumdegen/bevy_hanabi_loader
- Owner: ethereumdegen
- Created: 2024-02-08T14:54:15.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-16T17:01:17.000Z (4 months ago)
- Last Synced: 2024-10-11T06:24:40.020Z (about 1 month ago)
- Language: Rust
- Size: 229 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
### Bevy Hanabi Loader
Define a vfx file like this as a RON file
```
BillboardEffectBuilder(
name: "CloudBillboard",
texture_name: "cloud",
age: Constant(0.0),
lifetime: Constant(5.0),
position_center: RandomVector( offset:(-2.0,-2.0,-2.0),multiplier:(4.0,4.0,4.0) ) ,
position_radius: RandomScalar( offset:0.0,multiplier:8.0 ),
velocity_center: RandomVector( offset:(-2.0,-0.2,0.2),multiplier:(0.0,1.0,4.0) ) ,
velocity_speed: RandomScalar( offset:0.0,multiplier:8.0 ),
color_base: ( 0.9, 0.1, 0.1, 1.0 ),
color_random_multiplier: ( 0.0,0.6,0.0,0.0 ),
rotation: RandomScalar (offset: 0.0, multiplier: 6.28 ) ,
alpha_cutoff: TimeSinewave (time_scalar: 2.0, multiplier: 0.3, offset: 0.4)
)```
Then you can load it... see src/examples/basic.rs