three操控三维飞机在机场跑道起飞训练游戏

代码语言:html

所属分类:游戏

代码描述:three操控三维飞机在机场跑道起飞训练游戏

代码标签: three 操控 三维 飞机 机场 跑道 起飞 训练 游戏

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

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模拟飞机起飞 - 3D飞行游戏 (物理修复版)</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { overflow: hidden; background: #000; font-family: 'Arial', sans-serif; }
        canvas { display: block; }
        
        #hud {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10;
        }
        
        .panel {
            position: absolute;
            background: rgba(0, 20, 40, 0.75);
            border: 1px solid rgba(0, 200, 255, 0.4);
            border-radius: 10px;
            padding: 15px;
            color: #00e5ff;
            font-size: 14px;
            backdrop-filter: blur(5px);
        }
        
        .panel-left {
            left: 20px;
            top: 20px;
            min-width: 200px;
        }
        
        .panel-right {
            right: 20px;
            top: 20px;
            min-width: 180px;
        }
        
        .panel-bottom {
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            min-width: 400px;
        }
        
        .gauge {
            margin: 8px 0;
        }
        
        .gauge-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 3px;
            font-size: 12px;
            color: #88ccdd;
        }
        
        .gauge-bar {
            width: 100%;
            height: 8px;
            background: rgba(0, 50, 80, 0.8);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .gauge-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.1s;
        }
        
        .speed-fill { background: linear-gradient(90deg, #00e5ff, #00ff88); }
        .alt-fill { background: linear-gradient(90deg, #ff9800, #ff5722); }
        .thrust-fill { background: linear-gradient(90deg, #ffeb3b, #f44336); }
        
        .status {
            font-size: 16px;
            font-weight: bold;
            padding: 5px 15px;
            border-radius: 5px;
            display: inline-block;
            margin-top: 5px;
        }
        
        .status-ground { background: rgba(255, 152, 0, 0.3); color: #ff9800; }
        .status-takeoff { background: rgba(76, 175, 80, 0.3); color: #4caf50; animation: blink 0.5s infinite; }
        .status-flying { background: rgba(0, 229, 255, 0.3); color: #00e5ff; }
        .status-stall { background: rgba(255, 0, 0, 0.3); color: #ff3333; animation: blink 0.2s infinite; }
        
        @keyframes blink {
            50% { opacity: 0.5; }
        }
        
        #instructions {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 20, 40, 0.9);
            border: 2px solid rgba(0, 200, 255, 0.6);
            border-radius: 15px;
            padding: 30px 40px;
            color: #fff;
            text-align: center;
            z-index: 100;
            backdrop-filter: blur(10px);
            pointer-events: auto;
        }
        
        #instructions h1 {
            font-size: 32px;
            color: #00e5ff;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
        }
        
        #instructions .key {
            display: inline-block;
            background: rgba(0, 229, 255, 0.2);
            border: 1px solid rgba(0, 229, 255, 0.5);
            border-radius: 5px;
            padding: 3px 10px;
            margin: 2px;
            font-family: monospace;
            font-size: 14px;
            color: #00e5ff;
        }
        
        #instructions table {
            margin: 15px auto;
            border-collapse: collapse;
        }
        
        #instructions td {
            padding: 5px 15px;
            text-align: left;
            font-size: 14px;
        }
        
        #instructions td:first-child {
            text-align: right;
        }
        
        #startBtn {
            margin-top: 20px;
            padding: 12px 40px;
            font-size: 18px;
            background: li.........完整代码请登录后点击上方下载按钮下载查看

网友评论0