three实现三维赛马马儿比赛猜结果代码

代码语言:html

所属分类:三维

代码描述:three实现三维赛马马儿比赛猜结果代码

代码标签: three 三维 赛马 马儿 比赛 结果 代码

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

<!DOCTYPE html>
<html lang="zh">
<head>
    <title>3D 赛马游戏 (GLB版 - 修复动画逻辑)</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background-color: #1a1a2e;
            color: #eee;
            font-family: 'Arial', sans-serif;
            overflow: hidden;
        }
        #ui {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 100;
            pointer-events: none;
        }
        #ui > * { pointer-events: auto; }
        #betting-panel {
            background: rgba(0,0,0,0.8);
            border: 2px solid #ffd700;
            border-radius: 12px;
            padding: 15px;
            width: 320px;
            backdrop-filter: blur(10px);
        }
        #betting-panel h2 {
            text-align: center;
            color: #ffd700;
            margin-bottom: 10px;
            font-size: 22px;
            text-shadow: 0 0 10px rgba(255,215,0,0.5);
        }
        .horse-bet-row {
            display: flex;
            align-items: center;
            margin: 6px 0;
            padding: 8px;
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            cursor: pointer;
            transition: all 0.3s;
        }
        .horse-bet-row:hover {
            background: rgba(255,255,255,0.15);
        }
        .horse-bet-row.selected {
            background: rgba(255,215,0,0.2);
            border: 1px solid #ffd700;
        }
        .horse-color-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 10px;
            border: 2px solid rgba(255,255,255,0.3);
        }
        .horse-name {
            flex: 1;
            font-weight: bold;
            font-size: 14px;
        }
        .horse-odds {
            color: #ffd700;
            font-weight: bold;
            font-size: 14px;
        }
        .bet-controls {
            margin-top: 12px;
            text-align: center;
        }
        .bet-controls label {
            display: block;
            margin-bottom: 6px;
            color: #aaa;
            font-size: 13px;
        }
        .bet-controls input {
            width: 100%;
            padding: 8px;
            border: 1px solid #555;
            border-radius: 6px;
            background: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 16px;
            text-align: center;
            margin-bottom: 10px;
        }
        #start-btn {
            width: 100%;
            padding: 12px;
            font-size: 18px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #1a1a2e;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        #start-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255,215,0,0.5);
        }
        #start-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        #balance-display {
            text-align: center;
            margin-bottom: 10px;
            font-size: 16px;
            color: #4caf50;
        }
        #balance-display span {
            color: #ffd700;
            font-weight: bold;
            font-size: 20px;
        }
        #race-info {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 100;
            background: rgba(0,0,0,0.8);
            border: 2px solid #444;
            border-radius: 12px;
            padding: 15px;
            width: 280px;
            backdrop-filter: blur(10px);
        }
        #race-info h3 {.........完整代码请登录后点击上方下载按钮下载查看

网友评论0