~starkingdoms/starkingdoms

ref: fc59c04a44c40d563b40289bc6a2761ba2089ffd starkingdoms/crates/client/src/systems.rs -rw-r--r-- 573 bytes
fc59c04a — core Merge remote-tracking branch 'origin/core/rewrite-it-all-again-lmao' into core/rewrite-it-all-again-lmao 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::components::{Part, Player, PlayerBundle, Texture, Transform};
use bevy_ecs::prelude::Commands;
use nalgebra::{Rotation2, Scale3, Translation3};

pub fn create_hearty(mut commands: Commands) {
    commands.spawn(PlayerBundle {
        transform: Transform {
            translation: Translation3::new(0.0, 0.0, 0.0),
            rotation: Rotation2::new(0.0),
            scale: Scale3::new(25.0, 25.0, 1.0),
        },
        texture: Texture {
            name: "hearty.svg".to_string(),
        },
        player: Player,
        part: Part(false),
    });
}