SAMPLE_README
Last updated
Last updated
Unzip diarkis-field-sample.zip
and open it with Unity2021.3.6f1.
Open the Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title
scene and play it as is.
Demo concerning Diarkis Field.
Setting Item | Function | Example Input |
---|---|---|
You can verify position synchronization using the Field
function. The Field
is divided into a Grid
depending on the number of Pods
(number of UDP/TCP
servers) used. By default, 1Pod of the UDP
server is running, so 1 Map
is divided into 4 Grids
. When moving across Grids
, position information is not sent between characters in different Grids
, so they will not be displayed. The properties of the grid are defined on the server side and can be adjusted to the server's settings using the sliders for "Server Count" and "Grid Size".
In the MainGame
scene, you can control your character or observe others.
Your UID
Radius of distance from players to see other players
The number of connected UDP servers (this affects the number of Grids)
Slider to change the size of the Grid
Exit the room
If specifying Host
and Client Key
each time at startup is inconvenient, change the following in the Unity Editor:
Select Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Tile
.
Select Hierarchy
> DiarkisNetworkManager
.
Specify Inspector
> Transport
> Http Host
and Client Key
.
Select Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Tile
.
Open Hierarchy
> DiarkisNetworkManager
> Inspector
.
Changing the server to connect to (communication protocol)
Select the server to connect to with Server Type
as either UDP
or TCP
.
Selecting TCP allows communication through the TCP protocol.
Selecting UDP allows communication through the UDP protocol.
Output Log File
Checking Output Log File
will output a log file (XXXXX(UID).txt).
If executed in UnityEditor, it will be output to the DiarkisPluginSample/DebugLogs folder.
Please use this when debugging.
Display FPS
Checking Show FPS
will display the FPS on the screen during execution.
Select either UDP
or TCP
in DiarkisNetworkManager
> Inspector
> Server Type
.
Go to File
> Build Setting
> Platform
> PC, Mac & Linux Standalone
and press Switch Platform
. If already selected, this step is unnecessary.
Press the Build
button to build.
Launch the app from DiarkisWalkerSample.exe in the created folder to verify its operation.
Confirmed working environment for UnityEditor: Windows10 / Mac
Unity2021.03.6f1
Button | Function |
---|---|
Action | Control |
---|---|
Field
Sample page of the Field function
Move Forward
W key
Move Backward
S key
Move Right
W key
Move Left
A key
Move View
Right mouse button + Pointer
Jump
Space key
Run
Left Shift key
HttpHost
Value of EndPoint URL
asia-northeast1.diarkis.io/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (No http:// needed) / 192.168.XXX.XXX:7000
ClientKey
Value of Client Key
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (Can be left empty)