DEV Community

Discussion on: What happens when you reach the max score in chrome dino game? šŸ¤”

Collapse
 
maurerkrisztian profile image
KrisztiĆ”n Maurer • Edited

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..