Function jumpy::core::player::update_player_layers

source ยท
fn update_player_layers(
    entities: Res<'_, Entities>,
    player_inputs: ResMutInit<'_, MatchInputs>,
    animation_bank_sprites: CompMut<'_, AnimationBankSprite>,
    player_body_attachments: CompMut<'_, PlayerBodyAttachment>,
    player_layers: Comp<'_, PlayerLayers>,
    player_indexes: Comp<'_, PlayerIdx>,
    assets: Res<'_, AssetServer>,
)
Expand description

System that reads the PlayerLayers component and updates the animated sprite banks to match the animations specified.