Backgammon Network Game
broniek
$49.99
$50.00
1%OFF
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
03/17(2022) |
49.99 |
03/25(2022) |
50.0 |
03/29(2022) |
49.99 |
11/18(2024) |
49.99 |
Jump AssetStore
1.Introduction
This package is intended to familiarize the user with the ancient game Backgammon.
The game is fully functional, it ensures that the rules of the game are correctly followed.
The left mouse button is used to move the pieces to the appropriate allowed places. There is a "Roll the dice" button that generates two random numbers from 1 to 6.
The "Lobby" scene is the initial scene.
2.Game scenarios
You can play the game locally or remotely.
2.1.Local play:
Both players use the same game instance (network access is not necessary). Nick name is not necessary.
2.2.Remote play:
Each player uses different game instance (network access is necessary). Unical nick name is necessary.
Possible scenarios:
- both players share the same computer
- each player uses different computers connected to the network
Moreover you can play:
- with main server - hostnames are stored in a global table
- without main server - the client must know the ip address of the target host
Only remote clients can run on the computer where the master server is already running (hosts cannot). Only remote clients can run on the computer where the host is already running (no other hosts).
3.Network
The single network game is played by the host and at least one remote client connected to that host. The host is both the server and the local client. The remote client is only the client.
Each host represents a single game table (the host sets up a game table and waits for the player to arrive). There can be any number of hosts, but only one host can be for one IP address.
If there is to be a main server with knowledge about the currently created tables, it must be placed on a separate computer connected to the network. After the host creates the table, its location data is sent to the main server. The player who wants to join the game downloads from the main server a list of tables with information about the number of players sitting in it. After clicking on the name of the appropriate host on the list, the player connects to it and sits at the table.
If the main server does not exist or is not currently available, players have no knowledge of the location of the hosts. Then they have to know their addresses in order to connect to them.
For a network game to take place, a host must first be created. Then, you must create at least one remote client. The remote client selects a host from the list of currently available hosts provided by the main server and joins its game table.
The host waits for remote clients. The first remote client connected to the host starts the game. The next remote clients can only watch the game (they become an observer of the game being played).
The creator of the game table rules the table. He always starts the game first. He can kick the selected player from the table by clicking on his name on the list of opponents. He may resume the game at any time without the opponent's consent.
4.Setting the system
Steps to be taken for the correct operation of the network game system (see LobbyManager script in the Inspector window):
- build the main server (MainServer = true) that stores the list of currently available hosts and put it on a separate computer with the address indicated in Main Server Addresses (it should work continuously)
- create hosts and clients (MainServer = false) on computers other than the main server