Complete 3D metaverse platform with: - Three.js 3D rendering - Cannon.js physics engine - Pointer lock controls - Procedural cityscape - Floating islands - Portal system - Particle effects - WebXR/VR support ready - Multiplayer ready (Socket.io) Features: - First-person controls (WASD + mouse) - Jump and run mechanics - Chat system - Real-time HUD - Loading screen - Responsive design Built with Vite for fast builds and hot reload. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
635 B
JavaScript
23 lines
635 B
JavaScript
export const nextTick = (() => {
|
|
const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
|
|
if (isPromiseAvailable) {
|
|
return (cb) => Promise.resolve().then(cb);
|
|
}
|
|
else {
|
|
return (cb, setTimeoutFn) => setTimeoutFn(cb, 0);
|
|
}
|
|
})();
|
|
export const globalThisShim = (() => {
|
|
if (typeof self !== "undefined") {
|
|
return self;
|
|
}
|
|
else if (typeof window !== "undefined") {
|
|
return window;
|
|
}
|
|
else {
|
|
return Function("return this")();
|
|
}
|
|
})();
|
|
export const defaultBinaryType = "arraybuffer";
|
|
export function createCookieJar() { }
|