[][src]Function rust_action_heroes::lib::get_sprite

pub(crate) fn get_sprite(
    handle: &Handle<SpriteSheet>,
    index: usize
) -> SpriteRender

Given a sprite sheet handle, and a sprite number, return that sprite.

Should maybe do some error handling for if that sprite doesn't exist, I've definitely tried to use a non-existant sprite before...