three三维沙漠飞船驾驶游戏代码

代码语言:html

所属分类:其他

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

代码描述:三维沙漠飞船驾驶游戏

代码标签: 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, user-scalable=no" />
<title>沙漠飞船 · 沙暴突围</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
  canvas { display: block; }

  #hud {
    position: fixed; inset: 0; pointer-events: none;
    font-family: "Courier New", Consolas, monospace;
    color: #8ff6ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, .8), 0 0 2px #000;
    user-select: none;
  }

  #topbar {
    position: absolute; top: 18px; left: 20px;
    display: flex; gap: 26px;
  }
  .stat { display: flex; flex-direction: column; line-height: 1.15; }
  .stat label {
    font-size: 11px; letter-spacing: 2px; opacity: .65;
    color: #b9f4ff;
  }
  .stat span {
    font-size: 26px; font-weight: bold; letter-spacing: 1px;
  }
  .stat i { font-style: normal; font-size: 11px; opacity: .6; margin-left: 3px; }

  #warning {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    font-size: 17px; letter-spacing: 4px; font-weight: bold;
    color: #ffb45c;
    text-shadow: 0 0 14px rgba(255, 130, 0, .95), 0 0 30px rgba(255, 80, 0, .6);
    opacity: 0; transition: opacity .4s;
    white-space: nowrap;
  }
  #warning.on { opacity: 1; animation: blink 1.1s infinite; }
  @keyframes blink { 50% { opacity: .35; } }

  #reticle {
    position: absolute; left: 50%; top: 50%;
    width: 46px; height: 46px; transform: translate(-50%, -50%);
    opacity: .5;
  }
  #reticle::before, #reticle::after {
    content: ''; position: absolute; background: #6ff;
    box-shadow: 0 0 8px rgba(0, 220, 255, .9);
  }
  #reticle::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
  #reticle::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

  #hint {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    font-size: 12px; letter-spacing: 2px; opacity: .5; white-space: nowrap;
  }

  #speedlines {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
    opacity: 0; transition: opacity .35s;
  }

  .overlay {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(20,10,0,.72), rgba(0,0,0,.94));
    font-family: "Courier New", Consolas, monospace;
    color: #e8f8ff; text-align: center; z-index: 20;
    backdrop-filter: blur(3px);
  }
  .overlay.hidden { display: none; }
  .panel { padding: 34px 46px; }
  .panel h1 {
    font-size: 42px; letter-spacing: 10px; margin-bottom: 6px;
    color: #7df0ff;
    text-shadow: 0 0 22px rgba(0, 190, 255, .85);
  }
  .panel h2 {
    font-size: 15px; letter-spacing: 6px; margin-bottom: 26px;
    color: #ffab5e; font-weight: normal;
    text-shadow: 0 0 14px rgba(255, 120, 0, .7);
  }
  .panel p { font-size: 13px; line-height: 2; opacity: .8; letter-spacing: 1px; }
  .panel .key {
    display: inline-block; padding: 1px 7px; margin: 0 2px;
    border: 1px solid rgba(140, 240, 255, .5); border-radius: 4px;
    background: rgba(0, 190, 255, .08); color: #9ff2ff;
  }
  .panel .big {
    margin-top: 28px; font-size: 15p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0