What happens when you reach the max score in chrome dino game? 🤔
Krisztián Maurer

Krisztián Maurer @maurerkrisztian

About: Hi, I'm Maurer Krisztián A passionate full-stack developer from Hungary

Location:
Hungary
Joined:
Jul 19, 2022

What happens when you reach the max score in chrome dino game? 🤔

Publish Date: Aug 10 '22
27 3

You are probably familiar with the chrome dino game, and you have probably asked what happens at the end of the game. I will answer it for you.

What is the max score in the chrome dino game?

The answer is 999999

How did I find out?

I override the gameOver function so when the game calls it noting happens and set the speed to a high value

Runner.instance_.gameOver = ()=>{}
Runner.instance_.currentSpeed = 100000
Enter fullscreen mode Exit fullscreen mode

console

Maurer Krisztián max score cut

When you reach the 999999, sadly the counter restarts, nothing happened. 😔

You can try this at chrome://dino/

Comments 3 total

  • kimdontdoit
    kimdontdoitAug 10, 2022

    Nice and clever test! Sounds like my car when it reached 300k (counter stuck at 299 999km) lol

    What gave you the idea?

  • Chris Jarvis
    Chris JarvisAug 11, 2022

    It's cool that you figured that out. I guess the other option would have been to freeze the score at 999,999.

    • Krisztián Maurer
      Krisztián MaurerAug 11, 2022

      Thanks! Here you go:
      Image description

      Runner.instance_.distanceRan = 39999960
      Runner.instance_.currentSpeed = 0
      
      Enter fullscreen mode Exit fullscreen mode

      and you can set the high score

      Runner.instance_.distanceMeter.setHighScore(39999960)
      
      Enter fullscreen mode Exit fullscreen mode

      if you set distanceRan = 999 999 its not tha same.. so I calculated the ratio aprox 40*999999 = 39999960 this is working..

Add comment