#bevy #ron #vfx #define #load #format #loader

bin+lib bevy_hanabi_loader

A wrapper around bevy_hanabi that lets you define your vfx files in RON format and load them into bevy

11 releases

0.13.1 Mar 13, 2024
0.13.0 Feb 26, 2024
0.2.9 Feb 28, 2024

#1160 in Game dev

Download history 212/week @ 2024-02-10 128/week @ 2024-02-17 446/week @ 2024-02-24 49/week @ 2024-03-02 92/week @ 2024-03-09 18/week @ 2024-03-16 3/week @ 2024-03-23 119/week @ 2024-03-30 22/week @ 2024-04-06

698 downloads per month

MIT license

47KB
291 lines

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

Dependencies

~51–92MB
~1.5M SLoC