Skip to content

Commit

Permalink
Add Dino Game Easter Egg :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiamast committed May 31, 2022
1 parent 5c5b37f commit d23a6b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions JavaScript/scripts/EasterEgg.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function loadImages() {

} else {
start();
console.log("start");
console.log("Umm! i think Dino game started :)");
}
}

Expand All @@ -47,7 +47,7 @@ function setFavicon() {
// newIcon.setAttribute("href", canvas.toDataURL());
// favicon.parentNode.replaceChild(newIcon, favicon);
favicon.setAttribute("href", canvas.toDataURL());
history.replaceState(null, null, window.location.hash == "#1" ? "#false" : "#true");
history.replaceState(null, null, window.location.hash == "#1" ? "#0" : "#hi-there-wellcome");
}

// event handling
Expand Down Expand Up @@ -260,7 +260,7 @@ function gameOverStart() {
// set and display high score
if (score > highScore) {
highScore = score;
document.title = `Qiamast | Dino High Score : ${highScore}`;
document.title = `Qiamast | 🦕 High Score : ${highScore}`;
}

if (spaceDown) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Hey, this is 81 105 97 109 97 115 116 :)
# Hey :) wellcome

0 comments on commit d23a6b4

Please sign in to comment.