Skip to content

Arose-Niazi/Sky-Shooter-Unity-MLAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sky Shooter - Multiplayer - MLAPI (Unity)

Purpose

This is incomplete, and I don't think I will be completeing it at all. As I used this to learn the basic MLAPI, the sample by unity (Boss Room) was too complicated for me to understand from. So I did my own example to learn it.

Concepts used

  • Menu UI
  • Loading Scene
  • Scene Change
  • Game Pausing
  • Dialog showing
  • Prefabs Creation and Usage
  • Particles
  • Random Spawns
  • MLAPI
    • Spawn Players
    • Communcation between Server and Clients
    • Join Different Server
    • Host Server
    • Scene Switching
    • Position Sync
    • Objects Spawning and Despawn
    • Only Owner can move.
    • Same scenes are used for offline version as weell.
    • Generic Coding.

Special Thanks

Game Play

  • To play offlne, Select play.
  • Random enemies will be generated you will have too shoot them down.
  • 3 types of enmies are available, discover them. They have different health as well.
  • Your health is 10.
  • On dying the game will continue.
  • Pause to stop the game.
  • Restart to reload the game.
  • To play multiplayer you need someone to host.
  • Host it, get your ip and give it to other player.
  • Other player needs to click join, enter IP and Connect.
  • Host can start the game.

IMPORATNT

  • To play over differnet network, you need to portforward and allow through firewall.
  • Can't find your IP? Contact me i'll tell you how to find it. You can contact me by sending an email or creating a issue here.

Screen shots

Youtube Preview: https://youtu.be/nbWqds2Fko8