space-game/package.json
Michael Mainguy ccc1745ed2
All checks were successful
Build / build (push) Successful in 1m21s
Refactor asteroid scaling and reorganize assets
Major changes:
- Change asteroid config to use single scale number instead of Vector3
- Move planetTextures to public/assets/materials/planetTextures
- Add GLB path configuration for start base
- Fix inspector toggle to work bidirectionally
- Add progression system support

Asteroid Scaling Changes:
- Update AsteroidConfig interface to use 'scale: number' instead of 'scaling: Vector3Array'
- Modify RockFactory.createRock() to accept single scale parameter
- Update level serializer/deserializer to use uniform scale
- Simplify level generation code in levelEditor and levelGenerator
- Update validation to check for positive number instead of 3-element array

Asset Organization:
- Move public/planetTextures → public/assets/materials/planetTextures
- Update all texture path references in planetTextures.ts (210 paths)
- Update default texture paths in createSun.ts and levelSerializer.ts
- Update CLAUDE.md documentation with new asset structure

Start Base Improvements:
- Add baseGlbPath and landingGlbPath to StartBaseConfig
- Update StarBase.buildStarBase() to accept GLB path parameter
- Add position parameter support to StarBase
- Store GLB path in mesh metadata for serialization
- Add UI field in level editor for base GLB path

Inspector Toggle:
- Fix 'i' key to toggle inspector on/off instead of only on
- Use scene.debugLayer.isVisible() for state checking
- Consistent with ReplayManager implementation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 12:19:31 -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.32.0",
"@babylonjs/gui": "^8.32.0",
"@babylonjs/havok": "1.3.5",
"@babylonjs/inspector": "8.32.0",
"@babylonjs/loaders": "8.32.0",
"@babylonjs/materials": "8.32.0",
"@babylonjs/serializers": "8.32.0",
"@babylonjs/procedural-textures": "8.32.0",
"openai": "4.52.3"
},
"devDependencies": {
"@types/node": "^20.0.0",
"tsx": "^4.7.1",
"typescript": "^5.4.5",
"vite": "^5.2.13"
}
}