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,7 @@ import assert from 'node:assert/strict';
|
||||
import { createSummitWalking } from '../src/controls/summitWalking.ts';
|
||||
import { structurePosition } from '../src/scene/structures.ts';
|
||||
import { SUMMIT_TERRAIN } from '../src/constants/summitTerrain.ts';
|
||||
import { SUMMIT_PLATEAU } from '../src/constants/summitPlateau.ts';
|
||||
|
||||
const origin = { latitude: 37.445, longitude: 126.964 };
|
||||
const walking = createSummitWalking(origin);
|
||||
@@ -28,8 +29,8 @@ test('walking cannot cross forest, radar facility or the 200m boundary', () => {
|
||||
test('summit slab allows lateral movement beside the peak and connects to the lower forecourt', () => {
|
||||
// OSM peak is north of the estimated camera; photos show a broad slab, not just a trail.
|
||||
const peak = structurePosition(37.4451398,126.9642379,origin);
|
||||
const eastSlab = { x: peak.x+7, z: peak.z+4 };
|
||||
const westSlab = { x: peak.x-12, z: peak.z+4 };
|
||||
const eastSlab = { x: peak.x+7, z: peak.z+10 };
|
||||
const westSlab = { x: peak.x-12, z: peak.z+10 };
|
||||
assert.ok(walking.canTraverse(westSlab,eastSlab),'cross the upper slab beside the summit marker');
|
||||
assert.ok(walking.canTraverse(start,eastSlab),'lower forecourt joins the summit slab');
|
||||
const mast = structurePosition(37.4450675,126.9638043,origin);
|
||||
@@ -41,6 +42,8 @@ test('visible summit slab stops at its walking edge and the marker footprint is
|
||||
const outside={x:start.x-32,z:start.z-34};
|
||||
assert.equal(walking.onPlatform(outside.x,outside.z),false);
|
||||
assert.ok(walking.rockDistance(outside.x,outside.z)>0,'no circular rock patch beyond the slab boundary');
|
||||
assert.equal(walking.walkable(start.x-12,start.z-22),false,'cannot walk through the summit stone');
|
||||
assert.ok(walking.walkable(start.x-15,start.z-22),'can walk beside the stone');
|
||||
const [x,z] = SUMMIT_PLATEAU.marker.offset;
|
||||
assert.equal(walking.walkable(start.x+x,start.z+z),false,'cannot walk through the relocated summit stone');
|
||||
assert.ok(walking.walkable(start.x+x-3,start.z+z),'can walk beside the stone');
|
||||
assert.ok(walking.walkable(start.x-12,start.z-22),'the former marker position is no longer blocked');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user