francisation+bonus apres rickroll

This commit is contained in:
thaaoblues 2024-12-28 22:35:23 +01:00
parent 2a377b25c9
commit 4b4d8c3d03

View file

@ -294,10 +294,10 @@ function leBoostDuProf(){
if (i === 0){
rickRoll()
i+=1
}else{
score += 1000000000
majAffichageScore()
}
majAffichageScore()
}
@ -419,7 +419,7 @@ function rendreNombreLisible(n){
}
function showGift() {
function afficherCadeau() {
const x = Math.random() * (window.innerWidth - 50);
const y = Math.random() * (window.innerHeight - 50);
@ -429,7 +429,7 @@ function showGift() {
setTimeout(() => {
gift.style.display = "none";
setTimeout(showGift, Math.random() * 3000 + 2000); // Temps aléatoire entre 2 et 5 secondes
setTimeout(afficherCadeau, Math.random() * 3000 + 2000); // Temps aléatoire entre 2 et 5 secondes
}, Math.random() * 2000 + 1000); // Durée d'affichage entre 1 et 2 secondes
}