The dinosaur game is an easter egg that appears in the web browser of Google Chrome when you get an error. An also you can access the original game at chrome://dino
.
Here's a js-based clone of the dinosaur game written to learn.
You can examine the Chromium source codes I used for the clone and this repo.