Open-source web player for Rublox games, dual-licensed under AGPL-3.0 + Commercial. Highlights: - Babylon.js 7 + React 18 + Vite 5 stack - Self-contained engine (~46k lines): BlockManager, ModelManager, PlayerController, ScriptSandboxWorker, MultiplayerSync, 30+ GD gamemodes - Configurable backend via VITE_API_BASE and friends — works against staging (dev-api.rublox.pro) out of the box - Standalone mode (VITE_STANDALONE=true) loads a bundled sample game for first-run without any backend - Full docs: README, ARCHITECTURE, CONTRIBUTING, SECURITY, CHANGELOG - Lint + format scaffolding (ESLint + Prettier + EditorConfig) - Legal: LICENSE (AGPL-3.0), LICENSE-COMMERCIAL.md, CLA.md, COPYRIGHT.md - Issue templates: bug_report, feature_request, security_disclosure Removed before public release: - frontend_deploy.py (contained production SSH credentials) - ~27 admin endpoints (kept in private repo) - Hard-coded internal URLs and IPs - All previous git history (clean repo init)
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
# ============================================================================
|
|
# rublox-player environment variables
|
|
# ============================================================================
|
|
# Copy this file to .env (`cp .env.example .env`), then edit if needed.
|
|
# Defaults below point at the public staging environment so you can run the
|
|
# player out of the box without setting up your own backend.
|
|
|
|
# Backend base URL (HTTP API).
|
|
# Leave empty to use vite-proxy in dev (http://localhost:5173 → staging).
|
|
# In production set to your origin if frontend & backend are on different hosts.
|
|
VITE_API_BASE=
|
|
|
|
# Colyseus realtime (multiplayer) endpoints.
|
|
# These DO need to be configured for multiplayer to work.
|
|
# Public staging:
|
|
VITE_REALTIME_HTTP=https://dev-api.rublox.pro/api-game
|
|
VITE_REALTIME_WS=wss://dev-api.rublox.pro/api-game
|
|
|
|
# Rublox main site — where players are redirected if no auth ticket present.
|
|
VITE_RUBLOX_HOME=https://rublox.pro/app
|
|
|
|
# Standalone mode — load a built-in sample game instead of fetching from API.
|
|
# Useful for first-run / dogfood / when backend is unreachable.
|
|
# Values: "true" | "false"
|
|
VITE_STANDALONE=false
|
|
|
|
# Asset CDN base URL (optional). When set, .glb/.png/.mp3 are loaded from
|
|
# this URL instead of the local public/ folder. Useful in production to
|
|
# offload bandwidth to Cloudflare R2 or similar.
|
|
# VITE_ASSETS_CDN=https://cdn.rublox.pro/assets
|