lokiplay 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,10 @@
92
92
  what the update path does, then ask them to confirm server. Write
93
93
  `"authority": "server"` and `step`. Do not elect a player host. Server
94
94
  rooms are browser-only, run in Singapore, and end if the step fails; they
95
- do not fall back to a player. That is fairness, not lower latency.
95
+ do not fall back to a player. That is fairness, not lower latency. The
96
+ viewer clock follows `tickRate`. Leave `simulationHz` as the local
97
+ prediction step. Do not set `simulationHz` equal to `tickRate` to unstick
98
+ presentation.
96
99
  - Before compiling `step`, change the state update so the next state depends
97
100
  only on the previous state and this tick's inputs. Drawing, sound, and
98
101
  asset loads stay in the browser. If the update reads the DOM, the clock,
@@ -108,10 +111,6 @@
108
111
  the worker never mounts anything else.
109
112
  - A later switch is another deploy after the creator confirms again. Rooms
110
113
  already open keep the authority they started with.
111
- - Do not ask the creator to choose server, and do not write
112
- `"authority": "server"`, until Loki has enabled server authority in
113
- production. Until then, continuous games use host realtime. The server
114
- question above applies once that switch is on.
115
114
  - After inspecting and confirming each game mode's profile, choose
116
115
  `createSynchronizedRoom()` for turn-based or event-driven state, or
117
116
  `createRealtimeRoom()` for continuous realtime. Do not choose by genre or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lokiplay",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Command-line tools for Loki game projects and deployments.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@lokiplay/protocol": "0.4.2",
42
+ "@lokiplay/protocol": "0.4.4",
43
43
  "fflate": "^0.8.3"
44
44
  }
45
45
  }