Consistent naming
This commit is contained in:
parent
34d1de5847
commit
170088b836
@ -37,14 +37,14 @@ pub fn add_player(
|
||||
asset_server: Res<AssetServer>,
|
||||
mut materials: ResMut<Assets<ColorMaterial>>,
|
||||
) {
|
||||
let player_sprite = materials.add(asset_server.load("marshmallow.png").into());
|
||||
let player_material = materials.add(asset_server.load("marshmallow.png").into());
|
||||
|
||||
commands
|
||||
.spawn()
|
||||
.insert(Player)
|
||||
.insert(Name("Player 1".to_string()))
|
||||
.insert_bundle(SpriteBundle {
|
||||
material: player_sprite,
|
||||
material: player_material,
|
||||
sprite: Sprite::new(Vec2::new(64.0, 64.0)),
|
||||
transform: Transform::from_translation(Vec3::new(0.0, 0.0, 1.0)),
|
||||
..Default::default()
|
||||
|
Loading…
x
Reference in New Issue
Block a user