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>🧧 红包雨大作战 - 手速挑战</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            overflow: hidden; 
            background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 50%, #1a0505 100%);
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            cursor: pointer;
        }
        canvas { display: block; }
        
        #startScreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(139,0,0,0.95), rgba(178,34,34,0.95));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            gap: 30px;
        }
        
        #startScreen h1 {
            font-size: 56px;
            color: #ffd700;
            text-shadow: 0 0 30px rgba(255,215,0,0.8), 3px 3px 0 #8b0000;
            animation: bounce 1s ease-in-out infinite;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }
        
        #startScreen p {
            font-size: 20px;
            color: #ffe4b5;
            text-align: center;
            line-height: 1.8;
        }
        
        #startBtn {
            padding: 25px 80px;
            font-size: 32px;
            background: linear-gradient(45deg, #ffd700, #ffaa00, #ffd700);
            background-size: 200% 200%;
            animation: shimmer 2s ease infinite;
            color: #8b0000;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: bold;
            box-shadow: 0 0 40px rgba(255,215,0,0.6), 0 10px 30px rgba(0,0,0,0.3);
            transition: all 0.3s;
        }
        
        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        #startBtn:hover {
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 0 60px rgba(255,215,0,0.9), 0 15px 40px rgba(0,0,0,0.4);
        }
        
        .difficulty {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .diff-btn {
            padding: 12px 30px;
            font-size: 18px;
            background: rgba(255,255,255,0.1);
            color: #ffd700;
            border: 2px solid #ffd700;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .diff-btn:hover, .diff-btn.active {
            background: #ffd700;
            color: #8b0000;
        }
        
        #ui {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 20px;
            display: none;
            justify-content: space-between;
            align-items: flex-start;
            pointer-events: none;
        }
        
        .stat-box {
            background: linear-gradient(145deg, rgba(139,0,0,0.9), rgba(178,34,34,0.9));
            border: 3px solid #ffd700;
            border-radius: 20px;
            padding: 15px 25px;
            color: white;
            box-shadow: 0 0 30px rgba(255,215,0,0.3);
        }
        
        #moneyBox {
            font-size: 36px;
            text-align: center;
        }
        
        #moneyB.........完整代码请登录后点击上方下载按钮下载查看

网友评论0