- backend: in-memory public presence lobby — POST/GET /agents/presence
(id,name,x,y,dir,frame,sheet; 6s TTL; POST returns other live players)
- RpgTavern: broadcast my position ~600ms, render other visitors'
chibi avatars (smooth-interpolated) with name labels, depth-sorted;
a '👥 N in the tavern' counter
- verified: two browsers each show the other's named avatar walking, both
report 2 online
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
382 B
JSON
19 lines
382 B
JSON
{
|
|
"name": "amerc-site",
|
|
"version": "4.1.0-online",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite --host 0.0.0.0",
|
|
"build": "vite build",
|
|
"preview": "vite preview --host 0.0.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@vitejs/plugin-react": "^5.0.0",
|
|
"marked": "^14.1.4",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"vite": "^7.0.0"
|
|
}
|
|
}
|