You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Purpose of this PR
V. smol PR with some link additions based on feedback from Elfi (I know
that Bitesize is currently hidden because we can't pull in the code we
want, but I'm going through easy items on the backlog during the
offsite, humour me).
Also in the process I noticed that the samples landing page accidentally
went out without being updated 😅
### Jira ticket
[DOCMP-1316](https://jira.unity3d.com/browse/DOCMP-1316)
## Documentation
- Includes edits to existing public manual documentation.
## Testing & QA
N/A only small changes
## Backports
N/A
---------
Co-authored-by: Emma <[email protected]>
|**[NetworkBehaviour](components/core/networkbehaviour.md)**|[NetworkBehaviour](https://docs.unity3d.com/Packages/com.unity.netcode.gameobjects@latest?subfolder=/api/Unity.Netcode.NetworkBehaviour.html) is an abstract class that derives from [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html) and is primarily used to create unique netcode or game logic. To replicate any netcode-aware properties or send and receive RPCs, a [GameObject](https://docs.unity3d.com/Manual/GameObjects.html) must have a [NetworkObject](components/core/networkobject.md) component and at least one NetworkBehaviour component. |
8
-
|**[Synchronize](components/core/networkbehaviour-synchronize.md)**| You can use NetworkBehaviours to synchronize settings before, during, and after spawning NetworkObjects. |
7
+
|**[Bossroom](samples/bossroom/bossroom-landing.md)**| The Boss Room sample is a multiplayer game that demonstrates how to use Netcode for GameObjects to create a networked game. It provides a complete example of how to implement various features such as player movement, combat, and game state management in a multiplayer environment. |
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/Documentation~/samples/bitesize/bitesize-spaceshooter.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ The [2D Space Shooter Project](https://github.com/Unity-Technologies/com.unity.m
4
4
5
5
## Server Authoritative Physics Movement
6
6
7
-
The movement in 2DSpaceShooter is physics based. The player object is a dynamic rigidbody and can collide with other players or asteroids. Physics in multiplayer games can be hard to get right. For simplicity, 2DSpaceShooter runs all movement and physics just on the server-side.
7
+
The movement in 2DSpaceShooter is physics based. The player object is a [dynamic Rigidbody](https://docs.unity3d.com/Documentation/Manual/2d-physics/rigidbody/body-types/dynamic/dynamic-body-type-reference.html) and can collide with other players or asteroids. Physics in multiplayer games can be hard to get right. For simplicity, 2DSpaceShooter runs all movement and physics just on the server-side.
8
8
9
9
The client sends inputs in the form of RPCs to the server. The server then uses those inputs to adjust the throttle and turn values of the player.
10
10
11
11
This method of running physics makes sure that there are no desyncs or other physics issues between the client and server, but it introduces more latency.
12
12
13
13
## Player Health
14
14
15
-
2DSpaceShooter uses `NetworkVariable`s to track the players health and energy. Both variables are server authoritative, only the host or server can make changes to them. The client draws the player's health bar simply by accessing the value of the `NetworkVariable`.
15
+
2DSpaceShooter uses [NetworkVariables](../../basics/networkvariable.md) to track the players health and energy. Both variables are server authoritative, only the host or server can make changes to them. The client draws the player's health bar simply by accessing the value of the `NetworkVariable`.
The `2DSpaceShooter` object creates many objects dynamically at runtime including bullets, asteroids, and pickups. 2DSpaceShooter uses object pooling to avoid performance issues of instantiating and destroying Unity Objects all the time and creating allocations in the process.
37
+
The `2DSpaceShooter` object creates many objects dynamically at runtime including bullets, asteroids, and pickups. 2DSpaceShooter uses [object pooling](../../advanced-topics/object-pooling.md) to avoid performance issues of instantiating and destroying Unity Objects all the time and creating allocations in the process.
38
38
39
-
2DSpaceShooter uses the NetworkObjectPool script, which can be found in the Community Contributions Repository.
39
+
2DSpaceShooter uses the NetworkObjectPool script, which can be found in the [Community Contributions Repository](https://github.com/Unity-Technologies/multiplayer-community-contributions).
0 commit comments