space-game/public/levels/1.json
Michael Mainguy fe88c2bf47 Add My Levels tab, profile page, and token auth system
- Add My Levels tab to website level selection for viewing private levels
- Add profile page for generating/managing editor plugin tokens
- Create user_tokens table and RPC functions for token-based auth
- Fix cloudLevelService to use maybeSingle() for admin and level queries
- Fix getLevelById to try authenticated client first for private levels
- Add rotation support to asteroids, base, sun, and planets
- Remove deprecated difficultyConfig from level files
- Add editor script components for BabylonJS Editor integration

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 07:06:40 -06:00

129 lines
2.4 KiB
JSON

{
"version": "1.0",
"difficulty": "rookie",
"timestamp": "2025-11-11T02:25:59.322Z",
"metadata": {
"author": "System",
"description": "Simple rookie training mission with 4 asteroids",
"type": "default"
},
"ship": {
"position": [
0,
1,
0
],
"rotation": [
0,
0,
0
],
"linearVelocity": [
0,
0,
0
],
"angularVelocity": [
0,
0,
0
]
},
"startBase": {
"position": [
0,
0,
0
],
"baseGlbPath": "base.glb"
},
"sun": {
"position": [
0,
0,
400
],
"diameter": 50,
"intensity": 1000000
},
"planets": [],
"asteroids": [
{
"id": "asteroid-0",
"position": [
156.94085572623237,
7.655071329886562,
26.95900640691752
],
"scale": 4.970871148942566,
"linearVelocity": [
-11.853991319276782,
3.832852411651826,
39.00757072935994
],
"angularVelocity": [
-0.42551652358142866,
0.5493799332739933,
0.30167035132714326
]
},
{
"id": "asteroid-1",
"position": [
-23.650269493086213,
-7.516649878848993,
126.5433266370971
],
"scale": 4.200577184263548,
"linearVelocity": [
20.279713396596243,
-4.196597143111225,
-5.659116138590411
],
"angularVelocity": [
-0.7507666173804273,
0.18034984299295997,
0.9554422970140839
]
},
{
"id": "asteroid-2",
"position": [
-100.57744425293752,
-4.133377903929796,
-21.366880742332224
],
"scale": 3.965322849843854,
"linearVelocity": [
18.06997453473912,
3.1358603251655124,
-35.05836103718289
],
"angularVelocity": [
-0.6169324864147161,
-0.8284153049401051,
-0.0018035515865439944
]
},
{
"id": "asteroid-3",
"position": [
45.300201764673865,
-9.859323425039708,
-193.22872370344348
],
"scale": 4.373890659454386,
"linearVelocity": [
91.37841304510303,
-1.6739562491455018,
21.422594263117336
],
"angularVelocity": [
0.39048273397569644,
0.8814713796198581,
-0.972535786522579
]
}
]
}