Improve summit terrain, mobile HUD and multiplayer night equipment
Add the Blender flashlight asset with a 600 lm beam and reduced bloom, shared-mode self badge, and compact phone controls. Relocate the summit marker, blend terrain seams, widen walking routes, and align local server configuration on port 2027.
This commit is contained in:
@@ -3,6 +3,16 @@ import test from 'node:test';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { BoxGeometry, Group, Mesh, MeshStandardMaterial, Vector3 } from 'three';
|
||||
import { createSummitMarker } from '../src/scene/summitMarker.ts';
|
||||
import { summitPosition } from '../src/controls/summitCoordinates.ts';
|
||||
import { SUMMIT_TERRAIN } from '../src/constants/summitTerrain.ts';
|
||||
import { SUMMIT_PLATEAU } from '../src/constants/summitPlateau.ts';
|
||||
|
||||
test('marker placement matches the map pin plus the estimated satellite offset', () => {
|
||||
const spec = JSON.parse(readFileSync(new URL('../scripts/constants/marker-location.json', import.meta.url), 'utf8'));
|
||||
const pin = summitPosition(spec.pin.latitude, spec.pin.longitude, SUMMIT_TERRAIN.start);
|
||||
const expected = [pin.x + spec.offsetFromPinMeters[0], pin.z + spec.offsetFromPinMeters[1]];
|
||||
SUMMIT_PLATEAU.marker.offset.forEach((value, axis) => assert.ok(Math.abs(value-expected[axis]) < .001));
|
||||
});
|
||||
|
||||
test('exported marker embeds the current baked textures, not stale packed images', () => {
|
||||
const glb = readFileSync(new URL('../public/models/summit/summit-marker.glb', import.meta.url));
|
||||
|
||||
Reference in New Issue
Block a user