حرب شوارع v2 - تحديث الشرطة
by ChromeFlame24300 lines20.5 KB
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>حرب شوارع v2 - تحديث الشرطة</title>
<style>
*{box-sizing:border-box; font-family:Tahoma, Arial, sans-serif;}
body{margin:0; background:#0f0f0f; color:#fff; overflow-x:hidden;}
.top{padding:10px 12px; display:flex; justify-content:space-between; align-items:center; background:#1a1a1a; border-bottom:3px solid #facc15; flex-wrap:wrap; gap:10px;}
.top h1{margin:0; font-size:19px; color:#facc15;}
.stats{display:flex; gap:11px; font-weight:bold; font-size:13px; flex-wrap:wrap; align-items:center;}
.stats span{color:#facc15;}
#hpBar{width:100px; height:12px; background:#333; border-radius:20px; overflow:hidden; display:inline-block; vertical-align:middle;}
#hpFill{height:100%; background:#22c55e; width:100%; transition:0.3s;}
#gameWrap{position:relative; max-width:950px; margin:12px auto; padding:0 10px;}
canvas{width:100%; height:560px; background:#2d2d2d; border:3px solid #facc15; border-radius:12px; cursor:crosshair; display:block;}
#flash{position:absolute; top:60%; left:50%; width:90px; height:90px; background:radial-gradient(circle, #fff 0%, #facc15 30%, #f97316 60%, transparent 70%); border-radius:50%; pointer-events:none; opacity:0; transform:translate(-50%,-50%); mix-blend-mode:screen; z-index:5;}
.btns{display:flex; gap:8px; justify-content:center; margin:10px; flex-wrap:wrap;}
.btns button{background:#facc15; color:#000; border:none; padding:10px 16px; border-radius:10px; font-weight:bold; cursor:pointer; font-size:13px;}
.btns button.shop{background:#22c55e; color:#fff;}
.btns button.policeBtn{background:#2563eb; color:#fff;}
#weapons{display:grid; grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:8px; max-width:950px; margin:0 auto 10px; padding:0 10px;}
.wbtn{background:#222; border:2px solid #444; color:#fff; padding:9px 8px; border-radius:10px; cursor:pointer; text-align:center;}
.wbtn small{display:block; color:#aaa; font-size:11px; margin-top:3px;}
.wbtn.active{background:#facc15; color:#000; border-color:#facc15;}
.wbtn.locked{opacity:0.55;}
.hint{text-align:center; color:#ccc; font-size:13px; padding-bottom:10px;}
.hint b{color:#facc15;}
#shop{position:fixed; inset:0; background:rgba(0,0,0,0.9); display:none; z-index:50; overflow-y:auto; padding:20px;}
#shopBox{max-width:800px; margin:20px auto; background:#1e1e1e; border:2px solid #22c55e; border-radius:15px; padding:20px;}
#shopBox h2{color:#22c55e; margin-top:0; text-align:center;}
.shopItem{display:flex; justify-content:space-between; align-items:center; background:#2a2a2a; padding:12px; border-radius:10px; margin-bottom:8px; gap:10px; flex-wrap:wrap;}
.shopItem b{color:#facc15;}
.shopItem button{background:#22c55e; color:#fff; border:none; padding:8px 16px; border-radius:8px; cursor:pointer; font-weight:bold;}
.shopItem button:disabled{background:#555;}
#closeShop{background:#ef4444; color:#fff; border:none; padding:10px 20px; border-radius:10px; cursor:pointer; display:block; margin:15px auto 0; font-weight:bold;}
#gameOver{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,0.92); padding:25px 35px; border-radius:15px; text-align:center; border:2px solid #ef4444; display:none; z-index:10;}
#gameOver button{background:#ef4444; color:#fff; border:none; padding:12px 25px; border-radius:10px; font-size:16px; cursor:pointer; margin-top:10px;}
#updateBox{background:#1e2a1e; border:2px dashed #22c55e; border-radius:12px; padding:10px 15px; max-width:950px; margin:0 auto 10px; font-size:13px; text-align:center;}
#updateBox b{color:#22c55e;}
</style>
</head>
<body>
<div class="top">
<h1>🔫 حرب شوارع v2 - تحديث الشرطة 👮</h1>
<div class="stats">
<div>💰 مصاري: <span id="money">300</span>$</div>
<div>❤️ صحة: <span id="hpBar"><span id="hpFill"></span></span> <span id="hpText">100</span></div>
<div>👮 شرطة بالشارع: <span id="policeCount" style="color:#60a5fa;">0</span></div>
<div>🦹 عصابات: <span id="gangCount">0</span></div>
<div>⭐ مطلوب: <span id="wanted">1</span></div>
<div>🎯 السلاح: <span id="curName">مسدس</span></div>
<div>🔫 طلقات: <span id="ammo">12 / 12</span></div>
<div>💀 قتلت: <span id="kills">0</span></div>
</div>
</div>
<div id="updateBox">✅ <b>التحديث الجديد شغال:</b> الشرطة بتبين من أول ثانية + سيارات شرطة + مركز شرطة + سارينة | النسخة: <b>v2.0</b></div>
<div id="gameWrap">
<canvas id="c" width="920" height="560"></canvas>
<div id="flash"></div>
<div id="gameOver">
<h2 style="color:#ef4444; margin:0;">💀 متت! الشرطة مسكتك</h2>
<p id="finalScore" style="font-size:18px;"></p>
<button onclick="restart()">العب مرة ثانية</button>
</div>
</div>
<div class="btns">
<button class="shop" onclick="openShop()">🛒 متجر الأسلحة - B</button>
<button onclick="heal()">💊 اشتري دم - 100$</button>
<button onclick="buyAmmo()">🔫 عبي ذخيرة - 50$</button>
<button class="policeBtn" onclick="callMorePolice()">🚨 استدعي شرطة زيادة</button>
</div>
<div id="weapons"></div>
<p class="hint">الشرطة هسا بتبين أكيد، الزرقاء شرطة والحمرو عصابات • امشي بـ <b>WASD</b> واطخ بالماوس • <b>R</b> تلقيم • <b>B</b> متجر • طخ السيارات عشان تنفجر</p>
<div id="shop">
<div id="shopBox">
<h2>🛒 متجر الأسلحة</h2>
<p style="text-align:center;">مصاريك: <b id="shopMoney" style="color:#facc15;">300$</b></p>
<div id="shopList"></div>
<button id="closeShop" onclick="closeShop()">سكر المتجر ✕</button>
</div>
</div>
<script>
// =========================================================
// 🔥 هون مكان التحديثات - أي تحديث جديد بتحطه هون بس
// بدك تغير عدد الشرطة؟ غير الرقم هون
// =========================================================
const UPDATE = {
version: "v2.0 - تحديث الشرطة",
policeStart: 5, // كم شرطي بيبين بأول اللعبة
gangStart: 3, // كم عصابة بالبداية
policeSpawnTime: 1200, // كل كم ميلي ثانية بيجي شرطي جديد - كل ما قل الرقم بيجوا أسرع
policeSpeed: 1.6, // سرعة الشرطة
gangSpeed: 1.1, // سرعة العصابات
policeCarsStart: 2, // كم سيارة شرطة بالبداية
moneyStart: 300, // مصاري البداية
policeDamage: 8, // ضرر طلقة الشرطة
};
const canvas = document.getElementById('c');
const ctx = canvas.getContext('2d');
const flashEl = document.getElementById('flash');
const weapons = [
{ name:"مسدس", damage:20, fireRate:250, mag:12, reload:1200, type:"pistol", power:0.8, price:0, desc:"بداية - مجاني" },
{ name:"Glock 17", damage:25, fireRate:220, mag:17, reload:1200, type:"pistol", power:0.85, price:300, desc:"مسدس سريع" },
{ name:"Desert Eagle", damage:65, fireRate:450, mag:7, reload:1800, type:"pistol", power:1.6, price:800, desc:"طلقة بتطير الراس" },
{ name:".44 Magnum", damage:70, fireRate:500, mag:6, reload:2000, type:"pistol", power:1.7, price:1000, desc:"أقوى مسدس" },
{ name:"UZI", damage:20, fireRate:85, mag:32, reload:1500, type:"smg", power:0.65, price:900, desc:"رشاش خفيف" },
{ name:"MP5", damage:22, fireRate:95, mag:32, reload:1500, type:"smg", power:0.7, price:1100, desc:"رشاش شرطة" },
{ name:"P90", damage:24, fireRate:90, mag:50, reload:2000, type:"smg", power:0.75, price:1300, desc:"مخزن 50" },
{ name:"MP7", damage:23, fireRate:100, mag:40, reload:1600, type:"smg", power:0.72, price:1200, desc:"صغير وقاتل" },
{ name:"AK-47", damage:34, fireRate:120, mag:30, reload:2000, type:"rifle", power:1.0, price:1800, desc:"الأسطورة الروسي" },
{ name:"M4A1", damage:30, fireRate:110, mag:30, reload:1800, type:"rifle", power:0.9, price:1700, desc:"أمريكي سريع" },
{ name:"M16A4", damage:32, fireRate:140, mag:30, reload:1900, type:"rifle", power:0.95, price:1750, desc:"دقيق وقوي" },
{ name:"SCAR-L", damage:36, fireRate:130, mag:30, reload:2100, type:"rifle", power:1.05, price:2200, desc:"ضرر عالي" },
{ name:"G36", damage:29, fireRate:100, mag:30, reload:1700, type:"rifle", power:0.85, price:1600, desc:"ألماني سريع" },
{ name:"AUG", damage:31, fireRate:115, mag:30, reload:1800, type:"rifle", power:0.9, price:1650, desc:"نمساوي" },
{ name:"FAMAS", damage:28, fireRate:90, mag:25, reload:1700, type:"rifle", power:0.85, price:1550, desc:"فرنسي أسرع طلق" },
{ name:"Remington 870", damage:90, fireRate:700, mag:6, reload:2400, type:"shotgun", power:2.2, price:2500, desc:"شوتغن بيدمر" },
{ name:"SPAS-12", damage:85, fireRate:650, mag:8, reload:2600, type:"shotgun", power:2.0, price:2400, desc:"شوتغن ثقيل" },
{ name:"AWP", damage:100, fireRate:1400, mag:5, reload:2800, type:"sniper", power:2.5, price:3200, desc:"قناص طلقة وحدة" },
{ name:"Barrett M82", damage:120, fireRate:1600, mag:10, reload:3200, type:"sniper", power:2.8, price:4000, desc:"مضاد للدروع" },
{ name:"Kar98k", damage:95, fireRate:1200, mag:5, reload:2600, type:"sniper", power:2.3, price:3000, desc:"قناص كلاسيك" },
];
let player = { x:460, y:300, hp:100, speed:3.2, angle:0, radius:16 };
let money = UPDATE.moneyStart;
let kills = 0;
let wanted = 1;
let current = 0;
let unlocked = [0];
let ammo = weapons[0].mag;
let bullets = [], enemyBullets = [], enemies = [], cars = [], cans = [], particles = [], moneyDrops = [], explosions = [], policeCars = [];
let keys = {};
let mouse = {x:460, y:280};
let lastShot = 0, reloading = false, gameOver = false, time = 0, recoil = 0;
let shooting = false;
const weaponsDiv = document.getElementById('weapons');
function renderWeapons(){
weaponsDiv.innerHTML = '';
weapons.forEach((w,i)=>{
const isUnlocked = unlocked.includes(i);
const b = document.createElement('div');
b.className = 'wbtn' + (i===current?' active':'') + (!isUnlocked?' locked':'');
b.innerHTML = `${isUnlocked ? '' : '🔒 '} ${w.name}<small>${w.desc} | ${w.price}$ | ضرر ${w.damage}</small>`;
b.onclick = ()=>{ if(isUnlocked) selectWeapon(i); else openShop(); };
weaponsDiv.appendChild(b);
});
}
function selectWeapon(i){
if(!unlocked.includes(i) || gameOver) return;
current = i; ammo = weapons[i].mag; reloading=false;
renderWeapons(); updateHUD(); playClick();
}
function updateHUD(){
const policeNum = enemies.filter(e=>e.isPolice).length + policeCars.length;
const gangNum = enemies.filter(e=>!e.isPolice).length;
document.getElementById('money').textContent = money;
document.getElementById('hpText').textContent = Math.max(0, Math.floor(player.hp));
document.getElementById('hpFill').style.width = Math.max(0, player.hp) + '%';
document.getElementById('hpFill').style.background = player.hp > 50 ? '#22c55e' : player.hp > 25 ? '#facc15' : '#ef4444';
document.getElementById('policeCount').textContent = policeNum;
document.getElementById('gangCount').textContent = gangNum;
document.getElementById('wanted').textContent = wanted;
document.getElementById('curName').textContent = weapons[current].name;
document.getElementById('ammo').textContent = reloading ? 'عم بيعبي...' : `${ammo} / ${weapons[current].mag}`;
document.getElementById('kills').textContent = kills;
document.getElementById('shopMoney').textContent = money + '$';
}
function restart(){
player.hp=100; player.x=460; player.y=300; money=UPDATE.moneyStart; kills=0; wanted=1; current=0; unlocked=[0]; ammo=weapons[0].mag;
enemies=[]; bullets=[]; enemyBullets=[]; moneyDrops=[]; explosions=[]; policeCars=[]; gameOver=false;
document.getElementById('gameOver').style.display='none';
spawnCity(); spawnInitialForces(); renderWeapons(); updateHUD();
}
function callMorePolice(){
for(let i=0;i<4;i++) spawnPolice();
wanted = Math.min(5, wanted+1);
playSiren();
updateHUD();
alert('🚨 وصلت تعزيزات شرطة! صاروا أكثر');
}
// ===== الصوت =====
let audioCtx=null;
function getAudio(){ if(!audioCtx) audioCtx = new (window.AudioContext||window.webkitAudioContext)(); if(audioCtx.state==='suspended') audioCtx.resume(); return audioCtx; }
function playClick(){ try{ const ac=getAudio(); const o=ac.createOscillator(); const g=ac.createGain(); o.type='square'; o.frequency.value=800; g.gain.setValueAtTime(0.05,ac.currentTime); g.gain.exponentialRampToValueAtTime(0.001,ac.currentTime+0.05); o.connect(g); g.connect(ac.destination); o.start(); o.stop(ac.currentTime+0.06);}catch(e){} }
function playGunshot(w){
try{
const ac=getAudio(); const t=ac.currentTime;
const dur = w.type==='shotgun'?0.35 : w.type==='sniper'?0.45 : 0.2;
const bufSize = ac.sampleRate*dur; const buf = ac.createBuffer(1,bufSize,ac.sampleRate); const d=buf.getChannelData(0);
for(let i=0;i<bufSize;i++) d[i]=(Math.random()*2-1)*Math.pow(1-i/bufSize,2.2);
const n=ac.createBufferSource(); n.buffer=buf; const f=ac.createBiquadFilter(); f.type='lowpass'; f.frequency.value= w.type==='sniper'?800:1500;
const g=ac.createGain(); g.gain.setValueAtTime(0.85*w.power,t); g.gain.exponentialRampToValueAtTime(0.001,t+dur);
n.connect(f); f.connect(g); g.connect(ac.destination); n.start(t);
const o=ac.createOscillator(); const og=ac.createGain(); o.type='sine'; o.frequency.setValueAtTime(110,t); o.frequency.exponentialRampToValueAtTime(30,t+0.15); og.gain.setValueAtTime(0.4*w.power,t); og.gain.exponentialRampToValueAtTime(0.001,t+0.18); o.connect(og); og.connect(ac.destination); o.start(t); o.stop(t+0.2);
}catch(e){}
}
function playExplosion(){
try{ const ac=getAudio(); const t=ac.currentTime; const dur=0.7; const bufSize=ac.sampleRate*dur; const buf=ac.createBuffer(1,bufSize,ac.sampleRate); const d=buf.getChannelData(0); for(let i=0;i<bufSize;i++) d[i]=(Math.random()*2-1)*Math.pow(1-i/bufSize,1.5); const n=ac.createBufferSource(); n.buffer=buf; const f=ac.createBiquadFilter(); f.type='lowpass'; f.frequency.value=400; const g=ac.createGain(); g.gain.setValueAtTime(1,t); g.gain.exponentialRampToValueAtTime(0.001,t+dur); n.connect(f); f.connect(g); g.connect(ac.destination); n.start(t);}catch(e){}
}
function playMoney(){ try{ const ac=getAudio(); const o=ac.createOscillator(); const g=ac.createGain(); o.type='sine'; o.frequency.setValueAtTime(900,ac.currentTime); o.frequency.exponentialRampToValueAtTime(1400,ac.currentTime+0.12); g.gain.setValueAtTime(0.2,ac.currentTime); g.gain.exponentialRampToValueAtTime(0.001,ac.currentTime+0.13); o.connect(g); g.connect(ac.destination); o.start(); o.stop(ac.currentTime+0.14);}catch(e){} }
function playHit(){ try{ const ac=getAudio(); const o=ac.createOscillator(); const g=ac.createGain(); o.type='triangle'; o.frequency.setValueAtTime(400,ac.currentTime); o.frequency.exponentialRampToValueAtTime(150,ac.currentTime+0.1); g.gain.setValueAtTime(0.2,ac.currentTime); g.gain.exponentialRampToValueAtTime(0.001,ac.currentTime+0.11); o.connect(g); g.connect(ac.destination); o.start(); o.stop(ac.currentTime+0.12);}catch(e){} }
function playSiren(){
try{ const ac=getAudio(); const t=ac.currentTime; const o=ac.createOscillator(); const g=ac.createGain(); o.type='sine'; o.frequency.setValueAtTime(600,t); o.frequency.linearRampToValueAtTime(900,t+0.4); o.frequency.linearRampToValueAtTime(600,t+0.8); o.frequency.linearRampToValueAtTime(900,t+1.2); g.gain.setValueAtTime(0.08,t); g.gain.exponentialRampToValueAtTime(0.001,t+1.3); o.connect(g); g.connect(ac.destination); o.start(t); o.stop(t+1.3);}catch(e){}
}
// ===== المدينة + مركز الشرطة =====
const buildings = [
{x:40,y:40,w:140,h:110, label:'🏢 بناية'}, {x:250,y:40,w:140,h:110, label:'🏢 بناية'}, {x:530,y:40,w:140,h:110, label:'🏢 بناية'}, {x:740,y:40,w:140,h:110, label:'🏢 بناية'},
{x:40,y:410,w:140,h:110, label:'🏪 محل'}, {x:250,y:410,w:140,h:110, label:'🏪 محل'}, {x:530,y:410,w:140,h:110, label:'🏪 محل'}, {x:740,y:410,w:140,h:110, label:'🏪 محل'},
{x:40,y:230,w:100,h:100, label:'🚔 مركز شرطة'}, {x:780,y:230,w:100,h:100, label:'🏦 بنك'},
];
function spawnCity(){
cars = [];
const carColors = ['#ef4444','#3b82f6','#facc15','#22c55e','#a855f7','#f97316'];
for(let i=0;i<5;i++) cars.push({ x: 200 + i*110 + Math.random()*20, y: 200 + (i%2)*160, w:48, h:24, hp:60, maxHp:60, color:carColors[i], dead:false, angle:0 });
cans = [];
for(let i=0;i<9;i++) cans.push({ x: 100 + Math.random()*720, y: 180 + Math.random()*200, w:18, h:26, hp:1, color: ['#ef4444','#3b82f6','#facc15','#22c55e'][i%4] });
// سيارات شرطة بالبداية
policeCars = [];
for(let i=0;i<UPDATE.policeCarsStart;i++) policeCars.push({ x: 100 + i*120, y: 230, w:52, h:26, hp:120, maxHp:120, speed:1.8, lastShot: Date.now(), flash:0 });
}
function spawnPolice(){
if(gameOver) return;
// الشرطة بتطلع من مركز الشرطة - من جهة اليسار
const sx = 90 + Math.random()*40;
const sy = 250 + Math.random()*60;
enemies.push({ x: sx, y: sy, hp: 60, maxHp: 60, speed: UPDATE.policeSpeed, isPolice:true, lastShot: Date.now()+500, radius:14, flash:0, money: 70 + wanted*20 });
playSiren();
}
function spawnGang(){
if(gameOver) return;
const edge = Math.floor(Math.random()*4);
let x=0,y=0;
if(edge===0){ x=Math.random()*920; y=-20; } if(edge===1){ x=Math.random()*920; y=580; } if(edge===2){ x=-20; y=Math.random()*560; } if(edge===3){ x=940; y=Math.random()*560; }
enemies.push({ x, y, hp: 70, maxHp: 70, speed: UPDATE.gangSpeed, isPolice:false, lastShot: Date.now()+800, radius:14, flash:0, money: 60 + wanted*20 });
}
function spawnInitialForces(){
// هون السر - الشرطة بتبين فورا أول ما تفتح اللعبة
for(let i=0;i<UPDATE.policeStart;i++) setTimeout(()=>spawnPolice(), i*300);
for(let i=0;i<UPDATE.gangStart;i++) setTimeout(()=>spawnGang(), i*500);
}
spawnCity();
spawnInitialForces();
// كل شوي بيجي شرطة وعصابات جداد
setInterval(()=>{ if(!gameOver){ const p = enemies.filter(e=>e.isPolice).length; if(p < 3 + wanted*2) spawnPolice(); } }, UPDATE.policeSpawnTime);
setInterval(()=>{ if(!gameOver){ const g = enemies.filter(e=>!e.isPolice).length; if(g < 2 + wanted) spawnGang(); } }, 2000);
function explodeCar(car){
if(car.dead) return;
car.dead = true; playExplosion();
explosions.push({x:car.x, y:car.y, r:10, life:1});
for(let p=0;p<30;p++) particles.push({x:car.x, y:car.y, vx:(Math.random()-0.5)*10, vy:(Math.random()-0.5)*10, life:1, color: p%2?'#f97316':'#facc15'});
enemies.forEach(e=>{ const d=Math.hypot(e.x-car.x, e.y-car.y); if(d<110){ e.hp-=80; e.flash=1; } });
const pd=Math.hypot(player.x-car.x, player.y-car.y); if(pd<90) player.hp-=15;
moneyDrops.push({x:car.x, y:car.y, amount:100, life:8});
setTimeout(()=>{ if(!gameOver) cars.push({ x: 150+Math.random()*600, y: 190+Math.random()*180, w:48, h:24, hp:60, maxHp:60, color:'#'+Math.floor(Math.random()*16777215).toString(16), dead:false, angle:0 }); }, 8000);
}
function explodePoliceCar(pc){
playExplosion();
explosions.push({x:pc.x, y:pc.y, r:12, life:1});
for(let p=0;p<25;p++) particles.push({x:pc.x, y:pc.y, vx:(Math.random()-0.5)*10, vy:(Math.random()-0.5)*10, life:1, color:'#60a5fa'});
moneyDrops.push({x:pc.x, y:pc.y, amount:150, life:8});
policeCars = policeCars.filter(c=>c!==pc);
setTimeout(()=>{ if(!gameOver) policeCars.push({x:90, y:250, w:52, h:26, hp:120, maxHp:120, speed:1.8, lastShot:Date.now(), flash:0}); }, 6000);
}
function shoot(){
if(gameOver) return;
const now = Date.now(); const w = weapons[current];
if(reloading) return; if(now - lastShot < w.fireRate) return;
if(ammo<=0){ playClick(); reload(); return; }
lastShot = now; ammo--; recoil = w.power*6;
playGunshot(w);
const ang = player.angle;
const count = w.type==='shotgun' ? 5 : 1;
for(let i=0;i<count;i++){
const spread = w.type==='shotgun' ? (Math.random()-0.5)*0.3 : (Math.random()-0.5)*0.03;
bullets.push({ x: player.x + Math.cos(ang)*22, y: player.y + Math.sin(ang)*22, vx: Math.cos(ang+spread)*11, vy: Math.sin(ang+spread)*11, damage: w.damage, life: 60 });
}
flashEl.style.left = (player.x+20)+'px'; flashEl.style.top = (player.y-10)+'px'; flashEl.style.opacity=1;
setTimeout(()=> flashEl.style.opacity=0, 60);
updateHUD();
}
function reload(){
const w=weapons[current]; if(reloading || ammo===w.mag || gameOver) return;
reloading=true; updateHUD();
setTimeout(()=>{ ammo=w.mag; reloading=false; updateHUD()Game Source: حرب شوارع v2 - تحديث الشرطة
Creator: ChromeFlame24
Libraries: none
Complexity: complex (300 lines, 20.5 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" to link back to the original. Then publish at arcadelab.ai/publish.