space-game/public/levels/asteroid-mania.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

282 lines
5.6 KiB
JSON

{
"version": "1.2",
"difficulty": "rookie",
"timestamp": "2025-11-11T23:44:24.810Z",
"metadata": {
"author": "System",
"description": "Asteroid Mania!",
"estimatedTime": "5-8 minutes",
"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": [
242.60734209985543,
-114.56996058926651,
5.575229357062
],
"scale": 2,
"linearVelocity": [
-170.167175139332553,
80.177863609194048,
-0.39450965492725215
],
"angularVelocity": [
-0.834980024785148,
0.9648009938830251,
0.8185653748494373
]
},
{
"id": "asteroid-1",
"position": [
145.90971366777896,
42.273817290099984,
-244.80503221456152
],
"scale": 6,
"linearVelocity": [
-14.737555578618144,
-42.168846343154079,
240.72643991613985
],
"angularVelocity": [
0.575649251710729,
-2.8551046445434349,
-0.9477761112717422
]
},
{
"id": "asteroid-2",
"position": [
195.05992969157123,
-311.0584087077698,
-22.40662780090249
],
"scale": 4,
"linearVelocity": [
-160.81570103491442,
9.660316715266058,
160.9316276535952197
],
"angularVelocity": [
0.8587973467645904,
0.25620436829463733,
-0.7705721105608303
]
},
{
"id": "asteroid-3",
"position": [
-0.9357515100775112,
85.76554222686204,
249.4670613777975
],
"scale": 17.34408913479813,
"linearVelocity": [
0.07109432360434195,
-6.440116659897093,
-18.953420645560346
],
"angularVelocity": [
0.19650221972006143,
0.4226089665809898,
-0.9419176203015098
]
},
{
"id": "asteroid-4",
"position": [
-254.14456477364413,
54.65967750105119,
82.65652287437858
],
"scale": 4,
"linearVelocity": [
22.372081486064396,
-400.723605553550473,
-7.2761676675924445
],
"angularVelocity": [
-0.22039903827783025,
0.03062354927084643,
0.3628209366655213
]
},
{
"id": "asteroid-5",
"position": [
-257.7249224576784,
-112.97325792551102,
-92.25372143357285
],
"scale": 12,
"linearVelocity": [
17.764361846647077,
7.855903788127005,
6.358828139777149
],
"angularVelocity": [
-0.27982741337355455,
0.2465507084870353,
-0.8489416083688623
]
},
{
"id": "asteroid-6",
"position": [
-61.74000302102928,
103.75532261403117,
-224.6843746923246
],
"scale": 14.438006716048399,
"linearVelocity": [
4.573571795825104,
-7.611901885044768,
16.644154013167135
],
"angularVelocity": [
-0.41949593751738457,
-0.5881266007071146,
0.2671577602439994
]
},
{
"id": "asteroid-7",
"position": [
16.846663100767792,
72.36836836065181,
-271.36235273889974
],
"scale": 10,
"linearVelocity": [
220.2776861733199087,
-345.412726361379603,
-20.580688530433683
],
"angularVelocity": [
-0.5793176374486806,
0.8207961833131412,
-0.034658037798875885
]
},
{
"id": "asteroid-8",
"position": [
129.11110725214024,
91.10691458736655,
205.0668479159754
],
"scale": 10,
"linearVelocity": [
-10.330594112594069,
-7.209743461671342,
160.4080567261488
],
"angularVelocity": [
-2.572098306083443,
0.6581860817605101,
-0.7141435682550208
]
},
{
"id": "asteroid-9",
"position": [
-300.953057070289603,
225.21952155696817,
139.05608152400566
],
"scale": 14.151176153817078,
"linearVelocity": [
1.9861965590557589,
-314.387724003424648,
-8.922954201633985
],
"angularVelocity": [
0.7016416714654072,
-4.8069811132136699,
-0.16093262088047533
]
},
{
"id": "asteroid-10",
"position": [
300.953057070289603,
225.21952155696817,
139.05608152400566
],
"scale": 12,
"linearVelocity": [
100.9861965590557589,
-314.387724003424648,
-240.922954201633985
],
"angularVelocity": [
0.7016416714654072,
-4.8069811132136699,
-0.16093262088047533
]
},
{
"id": "asteroid-11",
"position": [
300.953057070289603,
-225.21952155696817,
69.05608152400566
],
"scale": 30,
"linearVelocity": [
100.9861965590557589,
-214.387724003424648,
140.922954201633985
],
"angularVelocity": [
0.7016416714654072,
-4.8069811132136699,
-0.16093262088047533
]
}
]
}