This document is about: FUSION 2
SWITCH TO

Overview

Level
BEGINNER
Topology
CLIENT HOST & SHARED AUTHORITY

Asteroids is a top-down arcade shooter for up to four players. Each player flies a spaceship, shoots asteroids that break into smaller fragments for points and has three lives. The round ends when its timer runs out or every ship is out of lives. It is a beginner sample for developers who completed the Host Mode Basics or Shared Mode Basics tutorial.

The sample ships as two separate Unity projects, one for Client Host and one for Shared Authority, see the Download page.

Gameplay
Gameplay

Features

  • Complete game loop: menu, pre-game screen, a 180 second round, winner screen and return to the menu
  • Big asteroids that break into three to five small asteroids when hit, 2 points for a big and 1 point for a small asteroid
  • Three lives per spaceship, a respawn delay and a short shield after each spawn
  • Projectiles stored as data in a networked array with local bullet visuals, see Projectiles Essentials
  • Asteroid pooling with a custom NetworkObjectProviderDefault, see NetworkObjectProvider
  • Network input, client-side prediction and lag compensated hit detection in the Client Host project, see Client-Server Player Input and Lag Compensation
  • Master client authority over the asteroids and the game state, hit requests through RPCs and local hit prediction in the Shared Authority project, see Shared Mode Master Client and RPCs

Third Party Assets

The Asteroids sample uses the following third party asset:

Last updated on

Back to top