Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Official repository of Rai-Net Access Battlers, the digital version of the famous board game downloadable fromwww.rainetdigital.com

License

NotificationsYou must be signed in to change notification settings

ferru97/Rai-Net-Access-Battlers---Official

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Donate

Rai-Net Access Battlers

This is the official repository of Rai-Net Access Battlers, the digital version of the famous board game downloadable fromwww.rainetdigital.com, and available for Android, Windows, and Linux

The project is composed of two main part:

  • The game source code located inGame/
  • The multiplayer server located inServer/

The game is currently developed usingUnity 2020.3.2f1

For any information and support join ourDiscord Channel!

Multiplayer server architecture

The multiplayer is implemented using real-time client-server communication via WebSockets usingSocket.IO available withNode.js.The backend implements four services:

  • HTTP server that exposes a single end-point/info used by the application to retrieve up-to-date information such as the latest version and custom message to show to the user. The source code of the server is located inServer/HTTPserver
  • MongoDB server used to store persistent data about users and matches information. This server is implemented with a docker container using the latest MongoDB image
  • Mongo Express server an optional service used to get quick access to the MongoDB database. For more info about Mongo Express clickHERE. Also, this server is implemented with a docker container using the latest Mongo Express image
  • Matchmaking Server, the actual service that provides matchmaking functionality using real-time client-server communication via WebSockets usingSocket.IO.

At run-time, each one of these services is dockerized and run viadocker-compose

Start a local multiplayer server

Thanks to docker containers and docker-compose starting a local multiplayer server is pretty simple, follow these steps:

  1. (Optional) Change the credentials information on the.env file
  2. Open the game project with Unity and open the scriptNetInfo.cs located inAssets/Script/NetInfo.cs. Here change the value of the variablesHTTP_SERVER_INFO andMATCHMAKING_SERVER replacing192.168.1.20 with your local machine IP
  3. Compile the game and generate the build for your device
  4. Open a terminal inServer/ and rundocker-compose up -d --build to instantiate all the services

Important!

The client game application and the server must have the same game version otherwise the client connection will be refused. To set the game version on the server set theGAME_VERSION variable on theServer/.env file. To set the game version of the client game application set the public variableVersion of theMain_Menu gameobject.

Contributions

Feel free to contribute to this project!The main improvements concern:

  • Implement an efficient AI for single player
  • Clean and comment the code
  • General improvements

Open a PL on theDEV branch to propose a change or open an Issue to suggest a change, report a bug, or discuss a feature

Donation

If you like this project, you can give me a cup of coffee :)

License

The content of this project itself is licensed under theGNU General Public License v3.0

About

Official repository of Rai-Net Access Battlers, the digital version of the famous board game downloadable fromwww.rainetdigital.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp