🎮ArcadeLab

الصاروخ المتنكر - النسخة الذهبية

by ChromeFlame24
121 lines11.0 KB
▶ Play
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<title>الصاروخ المتنكر - النسخة الذهبية</title>
<style>
  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; user-select:none; -webkit-user-select:none; touch-action:none; }
  html, body { width:100%; height:100%; overflow:hidden; background:#000; font-family: 'Segoe UI', Tahoma, sans-serif; }
  #game { position:fixed; inset:0; }
  canvas { display:block; width:100%; height:100%; }
  .overlay { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
  .overlay > * { pointer-events:auto; }
  .hidden { display:none !important; }
  
  #ageBadge { position:fixed; top:10px; left:10px; background:rgba(0,0,0,0.85); color:#ffd700; padding:8px 16px; border-radius:25px; font-size:14px; font-weight:bold; border:2px solid #ffd700; z-index:100; box-shadow: 0 0 25px rgba(255,215,0,0.6); }
  
  #mainMenu { background: radial-gradient(ellipse at center, #1a2a4a 0%, #050a15 100%); z-index:50; }
  .title { font-size: clamp(42px, 9vw, 85px); color:#ffd700; text-shadow: 0 0 50px #ff8c00, 0 0 100px #ff6a00, 0 5px 20px rgba(0,0,0,0.9); font-weight:900; letter-spacing:3px; margin-bottom:15px; text-align:center; animation: titleGlow 2s ease-in-out infinite; }
  @keyframes titleGlow { 0%,100% { text-shadow: 0 0 50px #ff8c00, 0 0 100px #ff6a00, 0 5px 20px rgba(0,0,0,0.9); } 50% { text-shadow: 0 0 70px #ffaa00, 0 0 120px #ff8c00, 0 5px 20px rgba(0,0,0,0.9); } }
  .subtitle { color:#b0c4de; font-size: clamp(16px, 3.5vw, 23px); margin-bottom:50px; text-align:center; text-shadow: 0 2px 15px rgba(0,0,0,0.9); }
  .menuBtn { background: linear-gradient(180deg, #2a3a5a 0%, #1a2a4a 100%); color:#ffd700; border:3px solid #ffd700; padding:22px 75px; font-size:25px; font-weight:bold; border-radius:16px; margin:12px; cursor:pointer; min-width:290px; transition:all 0.3s; box-shadow: 0 8px 35px rgba(255,215,0,0.5); position:relative; overflow:hidden; }
  .menuBtn::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: linear-gradient(45deg, transparent, rgba(255,215,0,0.3), transparent); transform: rotate(45deg); transition:all 0.5s; }
  .menuBtn:hover::before { left:100%; }
  .menuBtn:active { transform:scale(0.95); box-shadow: 0 4px 20px rgba(255,215,0,0.7); }
  .menuBtn.small { padding:15px 40px; font-size:19px; min-width:210px; }
  
  #hud { position:fixed; inset:0; pointer-events:none; z-index:20; }
  #hud > * { pointer-events:auto; }
  .hudTop { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; align-items:flex-start; }
  .hudPanel { background:rgba(0,0,0,0.8); color:#ffd700; padding:11px 20px; border-radius:13px; font-size:16px; font-weight:bold; border:2px solid rgba(255,215,0,0.6); backdrop-filter: blur(8px); box-shadow: 0 5px 25px rgba(0,0,0,0.6); }
  .exitBtn { background: linear-gradient(180deg, #dc143c 0%, #8b0000 100%); color:#fff; border:3px solid #fff; padding:13px 24px; border-radius:13px; font-size:19px; font-weight:900; cursor:pointer; box-shadow: 0 5px 25px rgba(220,20,60,0.6); }
  .hudBottom { position:absolute; bottom:28px; left:0; right:0; display:flex; justify-content:space-between; padding:0 28px; }
  .actionBtn { width:110px; height:110px; border-radius:50%; border:5px solid #ffd700; font-size:19px; font-weight:900; color:#fff; cursor:pointer; box-shadow: 0 8px 35px rgba(0,0,0,0.8); transition:all 0.2s; }
  .actionBtn:active { transform:scale(0.9); }
  .boostBtn { background: radial-gradient(circle, #ff6a00 0%, #c13a00 100%); }
  .brakeBtn { background: radial-gradient(circle, #4a90e2 0%, #1a4a8a 100%); }
  .shootBtn { background: radial-gradient(circle, #e24a4a 0%, #8b0000 100%); position:absolute; bottom:160px; right:28px; width:95px; height:95px; border-radius:50%; border:5px solid #ffd700; color:#fff; font-weight:900; font-size:19px; cursor:pointer; box-shadow: 0 8px 35px rgba(226,74,74,0.7); }
  .muteBtn { position:absolute; top:12px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.8); color:#ffd700; border:2px solid #ffd700; padding:11px 20px; border-radius:25px; font-size:17px; cursor:pointer; backdrop-filter: blur(8px); }
  
  #missionCard { background: radial-gradient(ellipse at center, rgba(20,30,50,0.98) 0%, rgba(5,10,20,0.99) 100%); z-index:40; padding:25px; }
  .cardBox { background: linear-gradient(180deg, #1a2a4a 0%, #0a1a2a 100%); border:3px solid #ffd700; border-radius:22px; padding:32px; max-width:580px; width:93%; box-shadow: 0 20px 70px rgba(255,215,0,0.5); }
  .cardTitle { color:#ffd700; font-size:30px; font-weight:900; text-align:center; margin-bottom:22px; text-shadow: 0 0 25px rgba(255,215,0,0.6); }
  .cardBody { color:#e0e8f0; font-size:18px; line-height:2.1; margin-bottom:22px; }
  .cardWarn { color:#ff6a6a; font-size:16px; line-height:1.9; padding:14px; background:rgba(200,30,30,0.25); border-radius:12px; border-right:5px solid #ff6a6a; }
  
  #alertOverlay { position:fixed; inset:0; background:rgba(200,30,30,0.45); z-index:30; display:flex; align-items:center; justify-content:center; pointer-events:none; animation: alertPulse 0.35s infinite alternate; }
  @keyframes alertPulse { from { background:rgba(200,30,30,0.35);} to { background:rgba(200,30,30,0.65);} }
  .alertText { color:#fff; font-size:clamp(35px, 7.5vw, 60px); font-weight:900; text-shadow: 0 0 35px #ff0000, 0 0 70px #ff0000, 0 0 100px #ff0000; animation: alertShake 0.07s infinite alternate; }
  @keyframes alertShake { from { transform:translate(-4px,-4px);} to { transform:translate(4px,4px);} }
  
  #shopScreen { background: radial-gradient(ellipse at center, #1a2a4a 0%, #050a15 100%); z-index:50; overflow-y:auto; padding:28px; }
  .shopTitle { color:#ffd700; font-size:38px; font-weight:900; margin-bottom:18px; text-shadow: 0 0 30px rgba(255,215,0,0.6); }
  .shopTabs { display:flex; gap:14px; margin-bottom:28px; flex-wrap:wrap; justify-content:center; }
  .shopTab { background:rgba(255,215,0,0.18); color:#ffd700; border:2px solid #ffd700; padding:12px 25px; border-radius:28px; cursor:pointer; font-weight:bold; transition:all 0.3s; }
  .shopTab.active { background:#ffd700; color:#000; box-shadow: 0 0 25px rgba(255,215,0,0.7); }
  .rocketsGrid { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap:17px; max-width:1400px; width:100%; }
  .rocketCard { background: linear-gradient(180deg, #1a2a4a 0%, #0a1a2a 100%); border:3px solid #4a5a7a; border-radius:17px; padding:17px; cursor:pointer; transition:all 0.3s; position:relative; }
  .rocketCard:hover { transform:translateY(-6px); box-shadow: 0 10px 35px rgba(255,215,0,0.4); }
  .rocketCard.owned { border-color:#4a8a4a; }
  .rocketCard.equipped { border-color:#ffd700; box-shadow: 0 0 35px rgba(255,215,0,0.8); }
  .rocketPreview { width:100%; height:130px; background: radial-gradient(ellipse at center, #2a3a5a 0%, #0a1a2a 100%); border-radius:12px; margin-bottom:12px; }
  .rocketName { color:#ffd700; font-size:16px; font-weight:bold; text-align:center; margin-bottom:9px; }
  .rocketStats { display:grid; grid-template-columns: 1fr 1fr; gap:6px; font-size:13px; color:#b0c4de; }
  .statBar { background:rgba(255,255,255,0.18); height:9px; border-radius:5px; overflow:hidden; margin-top:4px; }
  .statFill { height:100%; background: linear-gradient(90deg, #ffd700, #ff8c00); box-shadow: 0 0 12px rgba(255,215,0,0.7); }
  .rocketPrice { color:#ffd700; font-size:14px; font-weight:bold; text-align:center; margin-top:8px; padding:6px; background:rgba(255,215,0,0.15); border-radius:8px; }
  .rocketPrice.owned { color:#4a8a4a; background:rgba(74,138,74,0.2); }
  
  #builderScreen { background: radial-gradient(ellipse at center, #1a2a4a 0%, #050a15 100%); z-index:50; padding:22px; overflow-y:auto; }
  .builderBox { max-width:750px; width:100%; }
  .builderPreview { width:100%; height:240px; background: radial-gradient(ellipse at center, #2a3a5a 0%, #0a1a2a 100%); border-radius:14px; margin-bottom:22px; border:3px solid #ffd700; box-shadow: 0 0 30px rgba(255,215,0,0.4); }
  .builderControls { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
  .controlGroup { background:rgba(0,0,0,0.5); padding:14px; border-radius:12px; border:2px solid rgba(255,215,0,0.4); }
  .controlLabel { color:#ffd700; font-size:14px; font-weight:bold; margin-bottom:10px; }
  .colorPicker { display:flex; gap:7px; flex-wrap:wrap; }
  .colorSwatch { width:34px; height:34px; border-radius:50%; cursor:pointer; border:3px solid transparent; transition:all 0.2s; }
  .colorSwatch.selected { border-color:#fff; transform:scale(1.2); box-shadow: 0 0 15px rgba(255,255,255,0.6); }
  .shapePicker { display:flex; gap:7px; flex-wrap:wrap; }
  .shapeBtn { padding:8px 14px; background:rgba(255,215,0,0.15); color:#ffd700; border:2px solid #ffd700; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; }
  .shapeBtn.selected { background:#ffd700; color:#000; box-shadow: 0 0 15px rgba(255,215,0,0.6); }
  .nameInput { width:100%; padding:12px; background:rgba(0,0,0,0.6); color:#ffd700; border:2px solid #ffd700; border-radius:10px; font-size:17px; text-align:center; }
  
  #resultScreen { background: rgba(0,0,0,0.9); z-index:45; }
  .resultBox { background: linear-gradient(180deg, #1a2a4a 0%, #0a1a2a 100%); border:3px solid #ffd700; border-radius:18px; padding:35px; max-width:430px; text-align:center; box-shadow: 0 15px 50px rgba(255,215,0,0.5); }
  .resultTitle { font-size:40px; font-weight:900; margin-bottom:18px; }
  .resultTitle.win { color:#ffd700; text-shadow: 0 0 25px #ff8c00; }
  .resultTitle.lose { color:#ff4a4a; text-shadow: 0 0 25px #ff0000; }
  .resultReward { color:#ffd700; font-size:24px; margin:18px 0; }
  
  .coinsDisplay { position:fixed; top:10px; right:10px; background:rgba(0,0,0,0.85); color:#ffd700; padding:9px 16px; border-radius:22px; font-weight:bold; border:2px solid #ffd700; z-index:100; font-size:15px; box-shadow: 0 0 20px rgba(255,215,0,0.5); }
  
  @media (max-width: 600px) {
    .actionBtn { width:85px; height:85px; font-size:15px; }
    .shootBtn { width:75px; height:75px; bottom:125px; font-size:14px; }
    .menuBtn { padding:16px 45px; font-size:19px; min-width:230px; }
  }
</style>
</head>
<body>

<div id="ageBadge">+12 مناسب لعمر 12 وما فوق</div>
<div class="coinsDisplay" id="coinsDisplay">💰 0</div>

<div id="game">
  <canvas id="canvas"></canvas>
</div>

<div class="overlay" id="mainMenu">
  <div class="title">🚀 الصاروخ المتنكر</div>
  <div class="subtitle">نفّذ المهمة.. انفجر البيت.. اهرب قبل ما يمسكوك</div>
  <button class="menuBtn" onclick="startGame()">🎮 العب</button>
  <button class="menuBtn" onclick="openShop()">🛒 المتجر</button>
  <button class="menuBtn small" onclick="openBuilder()">🔧 اصنع صاروخك</button>
</div>

<div class="overlay hidden" id="missionCard">
  <div class="cardBox">
    <div class="cardTitle" id="missionTitle">المهمة</div>
    <div class="cardBody" id="missionBody"></div>
    <

Game Source: الصاروخ المتنكر - النسخة الذهبية

Creator: ChromeFlame24

Libraries: none

Complexity: moderate (121 lines, 11.0 KB)

The full source code is displayed above on this page.

Remix Instructions

To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: game-chromeflame24-mwnnb45m" to link back to the original. Then publish at arcadelab.ai/publish.