mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
fix(mobile): director number keys work with the menu open, plus engine fixes
Number keys 1-9, 0, - and = jump to beats whether or not the director is open. The engine now draws real river outlines over Esri's inconsistent Hudson imagery, declutters Moment labels, and makes playMoment, exitMoment and setTime(null) safe at any time (each view- cone line owns its material; teardown waits for the frame in flight). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
8 files changed
+227
-41
No files matched your search
@@ -28,6 +28,22 @@ export function loadHero() {
|
||||
return heroPromise;
|
||||
}
|
||||
|
||||
const WATER_URL = new URL('../demo/midtown-water.json', import.meta.url).href;
|
||||
let waterPromise = null;
|
||||
|
||||
/** River surfaces drawn over the imagery seam (see build-midtown-water.mjs). */
|
||||
export function loadWater(name) {
|
||||
if (name !== 'midtown-water.json') return Promise.resolve(null);
|
||||
if (!waterPromise)
|
||||
waterPromise = fetch(WATER_URL)
|
||||
.then((r) => (r.ok ? r.json() : null))
|
||||
.catch(() => {
|
||||
waterPromise = null;
|
||||
return null;
|
||||
});
|
||||
return waterPromise;
|
||||
}
|
||||
|
||||
export function loadBuildings(name) {
|
||||
if (name !== 'midtown-buildings.json') return Promise.resolve(null);
|
||||
if (!buildingsPromise)
|
||||
|
||||
Reference in new issue
Block a user