You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
# A simple multiplayer game using TCP and UDP.
2
2
3
3
## Compiling the client
4
-
You have to enable unsafe code in your unity project by going to **File > Build Settings > Player > Other settings > Allow 'unsafe' code**
5
-
For the movement of the players to work properly, go to **File > Build Settings > Time** then change **Fixed Timestep** and **Maximum Particle Timestep** to **0.033333**
6
-
After that, you should be able to build the project without any errors
4
+
-You have to enable unsafe code in your unity project by going to **`File > Build Settings > Player > Other settings > Allow 'unsafe' code`**
5
+
-For the movement of the players to work properly, go to **`File > Build Settings > Time`** then change **`Fixed Timestep`** and **`Maximum Particle Timestep`** to **`0.033333`**
6
+
-After that, you should be able to build the project without any errors
7
7
8
8
## Compiling the server
9
9
- You will have to build and lunch the server inside a linux machine. If you do not have a linux machine, you can use a virtual machine or download and install a linux machine - from the Microsoft Store. [Ubuntu](https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6) is recommended but you can use a different distro if you want
10
10
- After you are done setting up your linux machine, create a directory and copy the server files in that directory
11
11
- Open your terminal to the directory you created or use `cd <your_directory>`
12
12
- To compile the server, you will need to have `make` installed. You can check if you have it installed by typing `make` and you should not get any error. Else you have to type `sudo apt install make` (for debian-based distros) or "install package" command for your distro
13
-
- After you made sure that `make` is installed, type the following command: `make clean && make` (note: you do not have to use `make clean` if you compile it for the firt time)
13
+
- After you made sure that `make` is installed, type the following command: `make clean && make` (note: you do not have to use `make clean` if you compile it for the first time)
14
14
- After you are done compiling it, you can run it by typing in your terminal `./server` and pressing enter
0 commit comments