DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

eb9e8bb07668f013e1b3bce4a0e7d6e3c1b3a68a — Jonni Liljamo 1 year, 7 months ago fae2a3f
chore(client): fmt
1 files changed, 11 insertions(+), 7 deletions(-)

M client/src/plugins/game/card/mod.rs
M client/src/plugins/game/card/mod.rs => client/src/plugins/game/card/mod.rs +11 -7
@@ 84,7 84,11 @@ impl Default for VisualCardBundle {
            global_transform: GlobalTransform::default(),
            visibility: Visibility::default(),
            computed_visibility: ComputedVisibility::default(),
            collider: Collider::cuboid(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO, 0.01),
            collider: Collider::cuboid(
                VisualCard::ASPECT_RATIO / 2.,
                VisualCard::ASPECT_RATIO,
                0.01,
            ),
            rigid_body: RigidBody::Dynamic,
        }
    }


@@ 118,12 122,12 @@ impl FromWorld for VisualCardData {
            font_medium: asset_server.load("fonts/FiraMono-Medium.ttf#mesh"),
            font_bold: asset_server.load("fonts/FiraMono-Bold.ttf#mesh"),
            mesh: meshes.add(
                      shape::Quad {
                          size: Vec2::new(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO),
                          ..Default::default()
                      }
                      .into(),
                      ),
                shape::Quad {
                    size: Vec2::new(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO),
                    ..Default::default()
                }
                .into(),
            ),
            card_background: materials.add(card_background_material),
        }
    }