space-game/package.json
Michael Mainguy 17c98c6102
All checks were successful
Build / build (push) Successful in 1m25s
Fix explosion audio delay by using lightweight TransformNode
Changes:
- Replace MeshBuilder.CreateSphere() with TransformNode in rockFactory.ts
- Eliminates 15-50ms geometry creation delay before audio playback
- Spatial audio only needs position data, not full mesh geometry
- Sound now plays immediately on asteroid collision

Technical details:
- TransformNode is a lightweight position container with no geometry
- No vertex buffers or WebGL resources to allocate
- Instantaneous creation removes blocking operation from critical path
- Maintains spatial audio positioning without performance overhead

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 14:04:16 -06:00

35 lines
1.0 KiB
JSON

{
"name": "space-game",
"deployHostname": "www.flatearthdefense.com",
"private": false,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"havok": "cp ./node_modules/@babylonjs/havok/lib/esm/HavokPhysics.wasm ./node_modules/.vite/deps",
"speech": "tsc && node ./dist/server/voices.js",
"export-blend": "tsx scripts/exportBlend.ts",
"export-blend:watch": "tsx scripts/exportBlend.ts --watch",
"export-blend:batch": "tsx scripts/exportBlend.ts --batch"
},
"dependencies": {
"@babylonjs/core": "8.36.1",
"@babylonjs/gui": "^8.36.1",
"@babylonjs/havok": "1.3.10",
"@babylonjs/inspector": "8.36.1",
"@babylonjs/loaders": "8.36.1",
"@babylonjs/materials": "8.36.1",
"@babylonjs/serializers": "8.36.1",
"@babylonjs/procedural-textures": "8.36.1",
"openai": "4.52.3"
},
"devDependencies": {
"@types/node": "^20.0.0",
"tsx": "^4.7.1",
"typescript": "^5.5.3",
"vite": "^7.2.2"
}
}