[ { "search": "", "replace": "\n
" }, { "search": "function updatePlayer() {", "replace": "function updatePlayer() {\n checkCollision();" }, { "search": "function draw() {", "replace": "function checkCollision() {\n if (player.y + player.height >= canvas.height - 20) {\n player.jumping = false;\n player.y = canvas.height - player.height - 20;\n player.velY = 0;\n }\n}\n\nfunction draw() {" } ]