| Crates.io | bevy_flash |
| lib.rs | bevy_flash |
| version | 0.1.2 |
| created_at | 2025-10-06 12:50:16.78901+00 |
| updated_at | 2025-11-13 16:32:20.583827+00 |
| description | A Bevy plugin for Flash Animation. |
| homepage | |
| repository | https://github.com/aojiaoxiaolinlin/bevy_flash |
| max_upload_size | |
| id | 1870170 |
| size | 581,557 |
English | 中文
Bring Flash animations into the Bevy game engine, fully WASM compatible!
Bevy[!NOTE] Since GPUs perform blending in Linear Space, while Flash's blending modes default to blending in Gamma Space (or sRGB Space), the blending mode colors in the current implementation are not color-accurate.
I want to bring Flash animations into the game engine to reuse old resources and thereby reconstruct Flash web games!

git clone https://github.com/aojiaoxiaolinlin/bevy_flash.git
cd bevy_flash
cargo run --example sample
Minimal usage:
fn setup(mut commands: Commands, assert_server: Res<AssetServer>) {
commands.spawn(Camera2d);
commands.spawn((
Flash(assert_server.load("spirit2159src.swf")),
FlashPlayer::from_animation_name("WAI").with_loop(true),
Transform::from_scale(Vec3::splat(2.0)),
));
commands.spawn(Flash(assert_server.load("loading_event_test.swf")));
}
| bevy | bevy_flash |
|---|---|
| 0.17 | 0.1 |
If you also want to complete this plugin, you are welcome to submit a Pull Request (PR) or raise an issue.
This code is licensed under dual MIT / Apache-2.0 but with no attribution necessary. All contributions must agree to this licensing.