three实现三维科幻电影城市能量护盾代码

代码语言:html

所属分类:其他

代码由gpt-6 ai生成,可能有错误,仅供参考:点击查看提示词

代码描述:three实现三维科幻电影城市能量护盾代码

代码标签: three 三维 科幻 电影 城市 能量 护盾 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>未来都市 · 行星级能量防护网</title>
<style>
  :root { color-scheme: dark; }
  * { box-sizing: border-box; }
  html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #020711; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
  #scene { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }
  .hud { position: fixed; z-index: 2; pointer-events: none; color: #c9f5ff; text-shadow: 0 0 12px rgba(39, 203, 255, .55); }
  .top-left { top: 28px; left: 34px; }
  .eyebrow { font-size: 10px; letter-spacing: .34em; color: #64dfff; opacity: .88; }
  h1 { margin: 8px 0 0; font-size: clamp(19px, 2.2vw, 29px); font-weight: 500; letter-spacing: .16em; }
  .sub { margin-top: 7px; font-size: 10px; letter-spacing: .22em; color: rgba(181, 231, 247, .65); }
  .top-right { top: 30px; right: 34px; width: 190px; text-align: right; }
  .status { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .18em; color: #a6f9ff; }
  .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #65f7ff; box-shadow: 0 0 12px #39eaff; animation: blink 1.5s infinite; }
  .metric { margin-top: 13px; font-size: 9px; letter-spacing: .16em; color: rgba(170, 222, 241, .62); }
  .bar { height: 2px; margin-top: 7px; background: rgba(82, 190, 224, .18); overflow: hidden; }
  .bar span { display: block; height: 100%; width: 98%; background: linear-gradient(90deg, #39caff, #c7ffff); box-shadow: 0 0 9px #37dfff; }
  .bottom { left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 9px; letter-spacing: .24em; white-space: nowrap; color: rgba(174, 223, 239, .58); }
  .crosshair { position: fixed; z-index: 1; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); opacity: .22; pointer-events: none; }
  .crosshair:before, .crosshair:after { content: ""; position: absolute; background: #8deaff; box-shadow: 0 0 7px #26cfff; }
  .crosshair:before { left: 12px; top: 0; width: 1px; height: 26px; }
  .crosshair:after { top: 12px; left: 0; width: 26px; height: 1px; }
  @keyframes blink { 50% { opacity: .25; } }
  @media (max-width: 600px) {
    .top-left { top: 18px; left: 18px; }
    .top-right { top: 19px; right: 17px; width: 125px; }
    .eyebrow, .sub, .metric { font-size: 8px; }
    .status { font-size: 8px; }
    h1 { font-size: 17px; }
    .bottom { bottom: 14px; font-size: 7px; }
  }
</style>
<script type="importmap">
{
  "imports": {
    "three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
    "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
  }
}
</script>
</head>
<body>
<canvas id="scene"></canvas>
<div class="hud top-left">
  <div class="eyebrow">NOVA DEFENSE NETWORK / 07</div>
  <h1>新纪元 · 天穹之城</h1>
  <div class="sub">PLANETARY EN.........完整代码请登录后点击上方下载按钮下载查看

网友评论0