oriverse-engine 0.1.2 → 0.1.3
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.
- package/LICENSE.md +30 -30
- package/dist/AGENT_ONBOARDING.md +74 -74
- package/dist/CODEX_PROMPT.md +7 -7
- package/dist/examples/coin_collector.weave +70 -70
- package/dist/examples/dodge_blocks.weave +70 -70
- package/dist/examples/target_range.weave +82 -82
- package/dist/ktx_bridge.js +121 -121
- package/dist/ktx_lib.js +1 -1
- package/dist/oriverse_wgpu.d.ts +16 -17
- package/dist/oriverse_wgpu.js +90 -100
- package/dist/oriverse_wgpu_bg.wasm +0 -0
- package/dist/oriverse_wgpu_bg.wasm.d.ts +16 -17
- package/dist/snippets/oriverse_wgpu-255445ce6d9a0851/inline0.js +2 -1
- package/dist/starter/AGENTS.md +2 -2
- package/dist/starter/CLAUDE.md +2 -2
- package/dist/starter/game.html +5 -5
- package/dist/templates/game_cdn.html +5 -5
- package/dist/weave_documentation.txt +8 -10
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
>>>>>>>>>>>>
|
|
3
3
|
Weave World Description Language Documentation
|
|
4
|
-
Version:29Jul26-
|
|
4
|
+
Version:29Jul26-23:56-13158
|
|
5
5
|
>>>>>>>>>>>>
|
|
6
6
|
|
|
7
7
|
<weave_language>
|
|
@@ -264,7 +264,7 @@ event OnTuneChanged {
|
|
|
264
264
|
- RandomNumber/RandomPosition* are deterministic (seeded per tick + calling object + call index, so repeated or cross-object same-tick calls draw fresh values); inside player input events (key/mouse/action) all Random* calls are seeded by that input edge instead, so the predicted result matches the final one. RandomChancePercent outside input events returns false during client prediction, so there use it only for delay-tolerant side effects (e.g. drops), not moment-to-moment combat.
|
|
265
265
|
- Don't rely on cross-object event ordering (OnSpawned order across objects is unspecified).
|
|
266
266
|
- Lobby/session APIs:
|
|
267
|
-
- AdvertiseLobbySession/
|
|
267
|
+
- AdvertiseLobbySession()/ListLobbySessions()/JoinLobbySession are relay lobby discovery for menus; identity is automatic - sessions match only peers running this project with identical content (same saved version). LobbySessionStage(i) says which stage each session is on.
|
|
268
268
|
- They do NOT create gameplay replication endpoints or change sim authority; once joined, the same shared deterministic simulation model applies.
|
|
269
269
|
- Lobby UI lists real joined players via GetAllPlayers(); never simulate joins with a local counter/button.
|
|
270
270
|
- AI players (bots): var bot = SpawnAIPlayer("Rival") spawns a real PlayerObject: '#class player' code + OnSpawned run for it, it appears in GetAllPlayers(), has physics/animations, but no user/camera/UI. The Name arg becomes the bot's object name and its GetPlayerName().
|
|
@@ -1350,14 +1350,10 @@ SetSunColor(Color: Vector) // Default: (1, 1, 1) white
|
|
|
1350
1350
|
SetSunColor(R: Number, G: Number, B: Number)
|
|
1351
1351
|
SetFogColor(Color: Vector)
|
|
1352
1352
|
SetFogColor(R: Number, G: Number, B: Number)
|
|
1353
|
-
LoadWorldFile(File: Text) // First File arg must be a direct string literal so packaging/oripak dependency scan and project game_id detection can see it.
|
|
1354
|
-
LoadWorldFileWithInputs(File: Text, Input1: Number, Input2: Number) // First File arg must be a direct string literal so packaging/oripak dependency scan and project game_id detection can see it.
|
|
1355
1353
|
LoadWorldTransferClear()
|
|
1356
1354
|
LoadWorldTransferPush(Value: Number)
|
|
1357
1355
|
LoadWorldTransferCount() -> Number
|
|
1358
1356
|
LoadWorldTransferGet(Index: Number) -> Number
|
|
1359
|
-
GetWorldInput1() -> Number
|
|
1360
|
-
GetWorldInput2() -> Number
|
|
1361
1357
|
GetVignetteStrength() -> Number
|
|
1362
1358
|
GetVignetteRadius() -> Number
|
|
1363
1359
|
GetVignetteSoftness() -> Number
|
|
@@ -1368,15 +1364,17 @@ PersistSetNumber(Player: Object, Key: Text, Value: Number)
|
|
|
1368
1364
|
PersistAddNumber(Player: Object, Key: Text, Delta: Number)
|
|
1369
1365
|
RefreshStaticBaseline() // Call once at the end of heavy static-scene init; non-moving objects then skip per-frame display CPU (a later manipulation opts that object out).
|
|
1370
1366
|
RestartGame()
|
|
1371
|
-
AdvertiseLobbySession(
|
|
1367
|
+
AdvertiseLobbySession() // Advertise this relay as a joinable lobby session for the running project; not a gameplay replication/server-authority API.
|
|
1372
1368
|
StopAdvertisingLobbySession() // Stop advertising this relay lobby session.
|
|
1373
|
-
|
|
1369
|
+
ListLobbySessions() // Request discoverable lobby sessions of the running project (identity automatic, exact content version). Results update LobbySession* getters and fire OnLobbySessionListUpdated; state 2 with 0 sessions = nobody hosts this exact version.
|
|
1374
1370
|
JoinLobbySession(RelayPubkey: Text) // Join a discovered relay lobby session by LobbySessionRelayPubkey; deterministic shared sim still applies after joining.
|
|
1375
|
-
LobbySessionCount() -> Number // Number of discovered relay lobby sessions from the latest
|
|
1371
|
+
LobbySessionCount() -> Number // Number of discovered relay lobby sessions from the latest ListLobbySessions result.
|
|
1376
1372
|
LobbySessionRelayPubkey(Index: Number) -> Text // Relay pubkey for a discovered lobby session; pass to JoinLobbySession.
|
|
1377
1373
|
LobbySessionConnectId(Index: Number) -> Text // Debug/connect id for a discovered relay lobby session; usually not needed for gameplay code.
|
|
1378
1374
|
LobbySessionDisplayName(Index: Number) -> Text // Human display name for a discovered relay lobby session.
|
|
1379
|
-
LobbySessionRefreshState() -> Number // Latest
|
|
1375
|
+
LobbySessionRefreshState() -> Number // Latest list state: 0 idle, 1 pending, 2 ok, 3 error (read LobbySessionErrorText).
|
|
1376
|
+
LobbySessionStage(Index: Number) -> Text // #stage name a discovered session is currently on (empty for stageless projects); show or filter it in the session browser.
|
|
1377
|
+
LobbySessionErrorText() -> Text // Reason for state 3 (empty otherwise), e.g. relay unreachable or no loaded world.
|
|
1380
1378
|
AnyBasicType.NearestPlayerNonSpectator() -> Object
|
|
1381
1379
|
SetSsrRoughnessFade(StartRoughness: Number, EndRoughness: Number) // Default: 0.68, 0.7
|
|
1382
1380
|
SetSsrRayFade(NearFadePower: Number, FarFadePower: Number) // Default: 0.08, 0.8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oriverse-engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Prebuilt Oriverse engine bundle (WebGPU wasm + js glue) for serverless single-player games authored as one game.html with inline Weave source. Compiled engine only - contains no source code.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"files": [
|