gravity and floor. TODO: send level data to clients

This commit is contained in:
2022-08-13 21:59:09 +02:00
parent 46ebcdcafc
commit f24d13458a
2 changed files with 25 additions and 7 deletions

View File

@@ -168,7 +168,7 @@ fn client_sync_players(
let mut client_entity = commands.spawn_bundle(SpriteBundle {
sprite: Sprite {
color: Color::rgb(0., 0.47, 1.),
custom_size: Some(Vec2::new(1., 1.)),
custom_size: Some(Vec2::new(5., 5.)),
..Default::default()
},
..Default::default()
@@ -207,7 +207,7 @@ fn client_sync_players(
let projectile_entity = commands.spawn_bundle(SpriteBundle {
sprite: Sprite {
color: Color::rgb(0.25, 0.25, 0.75),
custom_size: Some(Vec2::new(50.0, 100.0)),
custom_size: Some(Vec2::new(5., 5.0)),
..default()
},
..default()