Building a star collector game

Our star collector game will be a semi-server-authoritative game. That is, players send move commands (which makes it possible to speedhack, teleport, and so on) but the server gets control over spawning players, stars, controlling star pickup, and other game logic.

Upon joining the server, players are spawned. Players will find stars they can collect. When all stars have been collected, the winner is announced in chat based on the player with the most stars, the stars are re-spawned, and the players reset.

Preparing the class library

Again, we're going to make a class library for our game server. This class library, as before, contains the Peer class and the Application class.

Note

You may find it easier, if you will ...

Get Unity Multiplayer Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.