// Definir posición inicial del jugador en la parte inferior let playerX = 275; let playerY = 750; const player = document.getElementById(“player”); function updatePlayerPosition() { player.style.left = Math.max(0, Math.min(550, playerX)) + “px”; player.style.top = Math.max(0,