Skip to content

fix: updated README#8

Merged
anshggss merged 1 commit into
mainfrom
master
Jul 4, 2026
Merged

fix: updated README#8
anshggss merged 1 commit into
mainfrom
master

Conversation

@anshggss

@anshggss anshggss commented Jul 4, 2026

Copy link
Copy Markdown
Owner

updated README to include architcture reference and changes in the repo structure.

Copilot AI review requested due to automatic review settings July 4, 2026 12:17
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
box-game-client Ready Ready Preview, Comment Jul 4, 2026 12:17pm

@anshggss anshggss merged commit ec5dc89 into main Jul 4, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project documentation to reflect the new distributed/horizontally-scalable architecture (gateway + server-manager + game-server pods) and the updated repository/service layout, including revised local, Docker, and Kubernetes setup guidance.

Changes:

  • Added architecture diagrams and detailed room-allocation / TLS port-mapping explanations.
  • Updated repository structure to include server-manager, scripts/, archRef/, and deployment configs.
  • Expanded “Getting Started” with server-manager + multi-game-server + gateway startup flow and k8s deployment notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
@@ -15,37 +15,109 @@ A real-time multiplayer platformer game built with HTML5 Canvas, Socket.IO, and
- **Spatial grid collision** — O(1) platform lookup for server-side physics
- **Particle system** — pooled, zero-allocation particle effects on the client
- **Configurable tick rate** — server tick rate is tunable via environment variable
Comment thread README.md
Comment on lines +174 to 178
| `SERVER_MANAGER_URL` | — | URL of the server-manager |
| `HOST_IP` | — | IP reported to server-manager (clients use this to connect) |
| `PORT_MIN` | `0` | Lower bound for random port selection |
| `PORT_MAX` | `0` | Upper bound (`0` = OS-assigned) |
| `TICK` | `120` | Game tick rate (Hz) |
Comment thread README.md
│ ├── routes/
│ │ ├── createRoom.ts # Allocates a room: queries server-manager, maps code→server
│ │ ├── addToRoom.ts # Adds a client to an existing room
│ │ └── removeFromRoom.ts # Removes a client from a room
Comment thread README.md
Comment on lines +216 to +220
# Game server
cd server && docker build -t boxgame-server . && docker run -p 30000:30000 boxgame-server

# Set environment variables
export REDIS_URL=redis://localhost:6379
export PORT=4000
# Gateway
cd gateway && docker build -t boxgame-gateway . && docker run -p 3000:3000 boxgame-gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants