创建一个交互式的 HTML、CSS 和 JavaScript…
- User
创建一个交互式的 HTML、CSS 和 JavaScript 卫星系统模拟程序,该程序应模拟卫星向地面接收器发送信号的过程。模拟程序应显示一颗卫星绕地球运行,并周期性地发送信号,这些信号会被多个地面接收器接收。
Assistant
I'll create an interactive satellite system simulation with a satellite orbiting Earth and sending signals to ground receivers. Let me start by exploring the project structure.
Now let me build the satellite simulation. I'll update the title and create the components.
Now let me create the main simulation app with all the interactive features:
Now let me create the main App component:
Now let me update the CSS for the range input styling:
Let me build the project to confirm everything works:
The project builds successfully. Let me verify the final structure:
The satellite communication system simulator is now complete! Here's a summary of what was built:
🛰️ 卫星通信系统模拟器
Features:
-
交互式太空场景 — 深空背景配有 150 颗闪烁的星星,营造沉浸式宇宙氛围
-
地球 — 带有大陆、云层、大气光晕和高光的精美 SVG 地球
-
卫星 — 带太阳能电池板、天线和闪烁信号灯的详细卫星模型,沿虚线轨道绕地球运行
-
5 个地面接收站 — 北京站、纽约站、伦敦站、悉尼站、圣保罗站,分布在地球表面各处,每个用不同颜色标识
-
信号传输动画 — 卫星周期性地向覆盖范围内的接收站发送信号,信号以动画点+虚线轨迹的形式飞向目标,接收时有脉冲效果
-
覆盖范围可视化 — 扇形区域显示卫星当前的信号覆盖角度
-
控制面板:
- ⏸ 暂停/▶ 运行 和 🔄 重置按钮
- 轨道速度滑块
- 信号发射间隔滑块
- 信号覆盖范围滑块
- 轨道半径滑块
-
实时数据面板 — 运行时间、信号总数、轨道角度、覆盖范围
-
接收站状态 — 每个站的信号强度条、接收状态指示灯和累计接收信号数
Files built:
index.html,src/types.ts,src/hooks/useSimulation.ts,src/components/Earth.tsx,src/components/Satellite.tsx,src/components/GroundReceiver.tsx,src/components/SignalBeam.tsx,src/components/OrbitPath.tsx,src/components/StarField.tsx,src/components/ControlPanel.tsx,src/App.tsx,src/index.css-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.