Compare commits

..

No commits in common. "170088b8362560f7a9c29a7dc318779fd9009813" and "ef4a98627ea2c32169b6ca33ddf8217510c366e0" have entirely different histories.

3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 381 B

View File

@ -37,14 +37,14 @@ pub fn add_player(
asset_server: Res<AssetServer>,
mut materials: ResMut<Assets<ColorMaterial>>,
) {
let player_material = materials.add(asset_server.load("marshmallow.png").into());
let player_sprite = materials.add(asset_server.load("marshmallow.png").into());
commands
.spawn()
.insert(Player)
.insert(Name("Player 1".to_string()))
.insert_bundle(SpriteBundle {
material: player_material,
material: player_sprite,
sprite: Sprite::new(Vec2::new(64.0, 64.0)),
transform: Transform::from_translation(Vec3::new(0.0, 0.0, 1.0)),
..Default::default()