Compare commits

2 Commits
0.0.1 ... main

Author SHA1 Message Date
a5b1d61951 Update Frontend-WEB/world.seppjm.com/3js/world.js
I had asked the LLM to “koppel” the buttons hook the functions, and ask for advice as i wasn’t sure yet if i wanted to “inject” the buttons with JS or keep them static with HTML. LLM didn’t come with information but just a solution that i copied and pasted. Weird comment. But i think you understand that after 3 days i just wanted a working prototype
2025-09-16 19:50:06 +00:00
19fd585416 Update Frontend-WEB/world.seppjm.com/3js/background.js
Asset location change
2025-09-13 20:28:10 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import { encode, decode } from "https://esm.sh/@msgpack/msgpack@3.1.2?bundle";
if (window.__threePS1Campfire) return; if (window.__threePS1Campfire) return;
window.__threePS1Campfire = true; window.__threePS1Campfire = true;
const MODEL_URL = "https://seppjm.com/3js/models/scene.fbx"; const MODEL_URL = "https://world.seppjm.com/3js/models/scene.fbx";
const NORMALIZE_SCALE = false; const NORMALIZE_SCALE = false;
const USE_FOG = true; const USE_FOG = true;
@@ -39,7 +39,7 @@ import { encode, decode } from "https://esm.sh/@msgpack/msgpack@3.1.2?bundle";
const FIRE_DECAY = 1.2; const FIRE_DECAY = 1.2;
/* --- WS spectator (minimal) --- */ /* --- WS spectator (minimal) --- */
const WS_URL = "wss://ws.world.seppjm.com/ws"; // adjust if you proxy to wss const WS_URL = "wss://ws.world.seppjm.com/ws";
const REMOTE_SPRITE_HEIGHT = 120; const REMOTE_SPRITE_HEIGHT = 120;
const REMOTE_SPRITE_ASPECT = 0.55; const REMOTE_SPRITE_ASPECT = 0.55;
const players = new Map(); // id -> {group, target, rotY} const players = new Map(); // id -> {group, target, rotY}
@@ -579,7 +579,7 @@ import { encode, decode } from "https://esm.sh/@msgpack/msgpack@3.1.2?bundle";
}); });
}); });
const audio = new Audio("https://seppjm.com/3js/audio/stalker.mp3"); const audio = new Audio("https://world.seppjm.com/3js/audio/stalker.mp3");
audio.loop = true; audio.loop = true;
audio.preload = "auto"; audio.preload = "auto";
audio.crossOrigin = "anonymous"; audio.crossOrigin = "anonymous";

View File

@@ -594,7 +594,7 @@ function startPlay(){
addEventListener("keyup",(e)=> keys.delete(e.code)); addEventListener("keyup",(e)=> keys.delete(e.code));
} }
/* join hooks — match your exact buttons and href */ /* join hooks */
(function hookJoin(){ (function hookJoin(){
const candidates=[ const candidates=[
'#join-btn', '#spectate-btn', '#join-btn', '#spectate-btn',