7 releases
| 0.2.0 | Oct 6, 2022 |
|---|---|
| 0.1.5 | Oct 5, 2022 |
#2910 in Game dev
37KB
251 lines
bevy_fixed_sprites
Bevy sprites that have their own transform independent of the bevy transform hierarchy.
![]()
Each sprite's Transform has the same scale and rotation.
Supports Bevy 0.8
Cargo
[dependency]
bevy_fixed_sprites = 0.2
Plugin
You need to add the FixedSpritePlugin to your Bevy App before you can draw a
FixedSprite
use bevy_fixed_sprites::*;
app.add_plugin(FixedSpritesPlugin);
Usage
For bevy_fixed_sprites' equivalents to regular bevy sprites use:
bevy::sprite::Sprite->bevy_fixed_sprites::FixedSpritebevy::sprite::SpriteBundle->bevy_fixed_sprites::FixedSpriteBundlebevy::sprite::TextureAtlasSprite->bevy_fixed_sprites::FixedTextureAtlasSpritebevy::sprite::SpriteSheetBundle->bevy_fixed_sprites::FixedSpriteSheetBundle
Examples
cargo run --example fixed_sprite
cargo run --example hierarchy
Dependencies
~42–58MB
~1M SLoC