@@ 19,6 19,16 @@ impl Plugin for CardPlugin {
}
}
+// NOTE: kind of like using enum variants
+pub mod visual_card_kind {
+ use bevy::prelude::*;
+
+ #[derive(Component)]
+ pub struct Normal;
+ #[derive(Component)]
+ pub struct Supply(pub usize);
+}
+
#[derive(Component)]
pub struct VisualCard {
pub card: Card,
@@ 56,7 66,10 @@ impl Default for VisualCardBundle {
Self {
visual_card: VisualCard::default(),
transform: Transform {
- rotation: Quat::from_euler(EulerRot::XYZ, -90., 0., 0.),
+ translation: Vec3 { x: 0., y: 0., z: 0. },
+ /// defaults to being rotated 90 degress on X, so flat on the
+ /// table.
+ rotation: Quat::from_euler(EulerRot::XYZ, -1.571, 0., 0.),
..Default::default()
},
global_transform: GlobalTransform::default(),