Thanks to visit codestin.com
Credit goes to github.com

Skip to content

isabella232/com.unity.services.samples.multiplayer-chess-cloud-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Chess Sample

A sample project that demonstrates how to implement a server authoritative asynchronous multiplayer game using Unity Gaming Services, without needing a dedicated game server.

Setup

For this sample to work, you first need to publish your Cloud Code module and Leaderboard via the UGS CLI. Remember to install and configure the CLI first. This requires a project ID and a service account key, both of which can be created and found in the Unity Dashboard.

Once the CLI is set up, the module and leaderboard can be deployed with the following commands (or by running the deploy.sh script):

ugs deploy ChessCloudCode/ChessCloudCode.sln
ugs deploy EloRatings.lb

To run the chess sample, import the Chess folder as a Unity project, open and run the ChessDemo.unity scene. To run another game client locally to play against, go to File -> Build and Run. Then you can create a game in one client, and join it in the other using the generated code shown in the top right of the game window.

To limit access to specific Cloud Code endpoints from authenticated players (i.e. the game client), have a look at the Access Control documentation.

Credits

This project uses the Free Low Poly Chess Set asset for the board and chess pieces, and the Gera Chess Library for validating the moves made by players.

See Third Party Notices for more information.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 67.7%
  • C# 20.4%
  • HLSL 11.8%
  • Shell 0.1%