Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Unity Multiplayer Online Fps Game: Steam & Mirror Networking
Rating: 4.0 out of 5(57 ratings)
417 students

Unity Multiplayer Online Fps Game: Steam & Mirror Networking

No upper limit of players, unlimited. Multiplayer game development. Unity & Steam & Mirror Networking, Online games
Created byTibet Ege Demir
Last updated 2/2023
English

What you'll learn

  • Making multiplayer games using Unity and Mirror.
  • No CCU fees. Free unlimited CCUs.
  • Using Steam to play with friends.
  • Creating a working FPS game designed for 2 players without an upper limit of players!
  • Creating a good looking and fundemental lobby to help matchmaking.
  • Learning the principles of multiplayer game development.
  • Writing codes for server and clients.
  • Spawning players in the game scene, syncronizing player movement, first person basics like fps hands, syncronizing animations, respawning players
  • Creating a good looking game environment.

Course content

1 section20 lectures4h 4m total length
  • Importing Mirror & Creating The Player8:39

    Import mirror from the asset store, set up a network manager with tcp transport, create a player prefab with start positions and network identity, then build and test multiplayer synchronization.

  • Player Movement [Part 1]14:35

    Create a player movement script using a character controller, read horizontal and vertical inputs, move with speed scaled by delta time, and rotate camera with the mouse under mirror networking.

  • Player Movement [Part 2]10:01

    Implement jumping and gravity (-9.81) in the multiplayer fps character controller by applying gravity to velocity, checking grounding with a 0.4 radius sphere, and jumping on input to reach height.

  • FPS & Third Person Animations20:13

    Sync first-person and third-person animations across players by integrating humanoid avatars and setting up animator controllers with mirror networking, then import assets and verify real-time animation syncing.

  • Health [Part 1]8:34

    Add a health script to the player prefab, display health with TM Pro text, and link a health bar to a starting value of 100 using Mirror networking.

  • Health [Part 2] & Firing [Part 1]10:11

    Explains syncing health with a Mirror hook, updating the health bar on changes, and firing via raycast with server and command functions to apply damage.

  • Firing [Part 2]7:32

    Develop hold-to-shoot in fire script using last shoot time and a 0.2 second cooldown, add a crosshair UI, clamp health at zero with max, and lock the cursor in Unity.

  • Damage Indicator Text12:08

    Instantiate a damage text at the hit position using TextMesh Pro, display the current damage, trigger an animation, then destroy the text while it faces the camera.

  • Environment13:33

    Build a Unity environment for a multiplayer fps by importing sci-fi assets, laying a sand ground, adding props and start positions, and applying colliders and textures for a test scene.

  • Fixing The Animation Issues6:33

    Fix animation issues in the unity multiplayer fps by adjusting offsets to face forward and correcting height, then update walking animation speed and overdrive and sync via the network animator.

  • Weapons For FPS Hands And Third Person Model6:43

    Attach the M4 carbine to the player's right hand, adjust transforms for alignment in first person and third person views, and use the network stop script to manage weapon visibility.

  • Death16:30

    Trigger a death sequence when health reaches zero, playing a chosen death animation and switching to an after camera, while disabling movement and enabling the tp model.

  • Respawning Players10:56

    Implement respawning by resetting health to 100 and repositioning players to the start after the round ends, using server and command functions to trigger round over and respawn.

  • Round Over Panel14:55

    Create a round over panel in Unity multiplayer by building a round end canvas with winner and time text, and toggle visibility and player controls at round end.

  • Lobby UI15:56

    Design and implement a multiplayer lobby UI with host and join options, an enter address panel, and start or leave lobby buttons to manage players and connections.

  • Lobby Code11:14

    Create and manage a multiplayer lobby using a custom Mirror network manager in Unity, enabling host and join flows via a UI address field and lobby scene.

  • Starting The Game10:41

    Configure the network manager and player prefab, then use the start game flow to launch a two-player multiplayer fps session with mirror networking.

  • Using Steam14:57

    Learn to enable Steam multiplayer in Unity using Steamworks, create and join lobbies, handle callbacks, and test a built game with friends.

  • New Lobby Design16:06

    Design a visually improved Unity multiplayer lobby, rework the UI and start button, add lobby geometry and desert skybox, and connect a close panel to the network manager.

  • Displaying Player Names14:20

    Display player names in the lobby by syncing steam IDs to a name text field with a hook and a synced variable for real-time updates across clients.

Requirements

  • No experience needed. A little bit of Unity experience might help to understand better but is not necessary.

Description

Have you ever wanted to build your own multiplayer shooter games that are popular like CSGO, Valorant, Fortnite? You have came to the right place.

In this course, we will be covering multiplayer basics and some advanced stuff and this course is suitable for all levels.

We will be using Mirror and Steam together so you will be able to play with your friends.

Mirror is a free library for multiplayer game development and has no upper limit of players (unlimited CCU) so you can create your own multiplayer game and spend no money for the server. And since we are using Steam API for matchmaking, you won't spend any money on matchmaking as well. A lot of professional game developers are using this technique and it is quite useful for indie game developers, people who don’t have big budgets and beginners.

Throughout the course, we will build a 2 player fps game and by doing so you will learn a lot of things like, creating a lobby, instantiating player in the game scene, synchronizing player movement and health, first person basics like fps hands, synchronizing animations, respawning players and a lot of other cool stuff.

So why don't you come and join me on this Multiplayer Game Journey?




Who this course is for:

  • This course is for people who want to create multiplayer games.