|
|
@ -272,11 +272,7 @@ |
|
|
|
context.fillText("You died with a score of: " + score, 250, 325); |
|
|
|
|
|
|
|
|
|
|
|
document.body.innerHTML += '<form id="dynForm" action="insertScore.php" method="post">\n\ |
|
|
|
<input type="hidden" name="game_new_score" value=true>\n\ |
|
|
|
<input type="hidden" name="game" value="1">\n\ |
|
|
|
<input type="hidden" name="user_id_score" value=" ' + <?php $_SESSION['user_id'] ?> + ' ">\n\ |
|
|
|
<input type="hidden" name="score_validate" value="' + score + '"></form>'; |
|
|
|
document.body.innerHTML += '<form id="dynForm" action="games/insertScore.php" method="post"><input type="hidden" name="game_new_score" value=true><input type="hidden" name="game" value=1><input type="hidden" name="user_id_score" value=<?php echo $_SESSION['user_id']; ?>><input type="hidden" name="score_validate" value=' + score + '></form>'; |
|
|
|
document.getElementById("dynForm").submit(); |
|
|
|
} |
|
|
|
animate(tic); |
|
|
|