diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-03 16:57:55 +0100 |
---|---|---|
committer | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-03 16:57:55 +0100 |
commit | a6f63d755caf51cd9866ba5aaf0c9fd3c0d56bde (patch) | |
tree | 8c9a9498ea877d6df02893caddf5717e57152c0b /examples/breakout/breakout.rs | |
parent | 4103125aa0f3ad3368ccf97fbdae5eedbe6e7233 (diff) |
[breakout:example] Networked bricks spawn
Diffstat (limited to 'examples/breakout/breakout.rs')
-rw-r--r-- | examples/breakout/breakout.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/breakout/breakout.rs b/examples/breakout/breakout.rs index 1183dbb..96527c2 100644 --- a/examples/breakout/breakout.rs +++ b/examples/breakout/breakout.rs @@ -12,6 +12,8 @@ mod client; mod protocol; mod server; +const SERVER_PORT: u16 = 6000; + // Defines the amount of time that should elapse between each physics step. const TIME_STEP: f32 = 1.0 / 60.0; @@ -148,9 +150,6 @@ struct Collider; struct CollisionEvent; #[derive(Component)] -struct Brick; - -#[derive(Component)] struct Score; struct CollisionSound(Handle<AudioSource>); |