top of page

goal prototype 21-12-2018

  • antonio
  • Dec 21, 2018
  • 1 min read

what is shown here is the players being unique (in color), and having a goal generated, this goal is of the collect type, player can collect it to get 10 points, or can shoot at it and get 20 points, the first player to reach 100 points is the winner and the other players are losers.

at first i tried using Unity's multiplayer Lobby, but unfortunately it doesn't natively support different player characters. and even though it seems simple, but actually it was a little complicated to make the goal work like shown, because a lot of the components had to connect to each other, for example the collectible game object has to know which player collected it or has thrown a rock at it and then reach it's client and update their score, and then reach their user interface and update the score on the screen, then the game manager has to know who are all the players, and check their scores and when it finds a winning player it has to stop the goal and tell the winning client that it has won and the other that they lost, and then update the correct user interface individually or there will be duplicate messages on the screen.


 
 
 

Comments


bottom of page