🎯 Tiro al Bersaglio corretto

Tiro al Bersaglio 🎯 Tiro al Bersaglio Inizia partita Ricomincia const canvas=document.getElementById("game"), ctx=canvas.getContext("2d"); let score, targets, running; function reset(){ score=0; targets=[]; running=false; drawFrame(); } function createTarget(){ const r=20+Math.random()*20; const x=r+Math.random()*(canvas.width-2*r); const y=r+Math.random()*(canvas.height-2*r); targets.push({x,y,r}); } canvas.addEventListener("click",e=>{ if(!running) return; const rect=canvas.getBoundingClientRect(); const…