Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Best Practices for coding in multiplayer networking game

$
0
0

Hi, I am trying to find a way to make my code neater, example 

Photon.Instantiate() (Instantiate the game object in the network)

GameObject.Instantiate() (normal instantiation)

Let's say a script is using photon.Instantiate but I wanted to test the script in a non network environment, so I have to add a bool to check if is in network. Is there other proper method for this rather than keep adding boolean check for each networked function call if I wanted to test in a non network environment.


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>