File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,56 @@ Godot_v4.0.2-stable_linux.x86_64 --display-driver headless --path <your_git_dir>
2222```
2323There's a very limited cli. Server can be stopped by entering "stop", "quit" or "exit".
2424
25+ ## Additional info
26+ There are 2 state dictionaries:
27+
28+ states_udp gathers all data we want to sync unreliable but fast. \
29+ states_tcp gathers all data we want to sync reliable.
30+
31+ Every object that gets synchronized adds its values to one of those dictionaries, if the values have changed.
32+
33+
34+ Because we gather all this data in two dictionaries we can easily use just one tcp and one udp rpc per server tick.
35+ If we have values that have changed to sync.
36+ (Its also planned to add a updaterate value)
37+
38+ ### states_udp
39+
40+ example:
41+ ``` json
42+ {
43+ "moving_cube" :
44+ {
45+ "MovingCube1" :
46+ {
47+ "position" :" (623.7565, 165, 63)"
48+ }
49+ },
50+ "player" :
51+ {
52+ "1481316750" :
53+ {
54+ "camera_arm_rotation" :" (-0.072458, 0, 0)" ,
55+ "position" :" (807.2864, 163.6185, -71.30477)"
56+ }
57+ }
58+ }
59+ ```
60+ ### states_tcp
61+
62+ example:
63+ ``` json
64+ {
65+ "player" :
66+ {
67+ "1481316750" :
68+ {
69+ "camera_arm_scale" :" (1, 1, 6)"
70+ }
71+ }
72+ }
73+ ```
74+
2575## Todo list
2676* shoot bullet
2777* updaterate
You can’t perform that action at this time.
0 commit comments