Gun Action Game<title> <style> #player { width: 50px; height: 50px; background-color: blue; position: absolute; } #enemy { width: 30px; height: 30px; background-color: red; position: absolute; } <style> <head> <body> <div></div> <div></div> <script> const player = document.getElementById('player'); const enemy = document.getElementById('enemy'); let score = 0; player.style.top = '50%'; player.style.left = '50%'; enemy.style.top = Math.random() * 90 + '%'; enemy.style.left = Math.random() * 90 + '%'; document.addEventListener('mousemove', function(event) { player.style.top = event.clientY + 'px'; player.style.left = event.clientX + 'px'; }); player.addEventListener('click', function() { score++; enemy.style.top = Math.random() * 90 + '%'; enemy.style.left = Math.random() * 90 + '%'; alert('Score: ' + score); }); <script> <body> <html> <script defer data-domain="html.cafe" src="https://milkymouse.com/js/script.js"></script>