Skip to content
Discussion options

You must be logged in to vote

This seems to compile without any errors

    pub fn scene() -> impl Scene {
        let controller_bsn = CharacterController::scene();

        let atlas_layout = TextureAtlasLayout::from_grid(UVec2::splat(48), 2, 1, None, None);

        bsn! {
            controller_bsn
            Player
            Visibility::Visible
            Children [(
                AtlasAnimator
                FacingDirection
                Sprite {
                    image: "images/player.png",
                    texture_atlas: OptionTemplate::Some(TextureAtlasTemplate {
                        layout: asset_value(atlas_layout),
                        index: 0
                    })
                }
  …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Monochrotec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant