Google Chrome

From Misc Data Digs

MissingImage.png

Google Chrome

Developed by: Google LLC
First Released: September 2, 2008
Current Version: 81.0.4044.138 (May 5, 2020)
Type of Software: Web Browser

This software has unused images.

T-Rex Minigame[edit | edit source]

The T-Rex minigame from Google Chrome is one of the most well-known Easter eggs ever. It can be accessed by pressing the space bar, or touching the dinosaur on touchscreen devices, when the offline error is shown. It can also be accessed at chrome://dino.

Game Over Dino Early Sprite[edit | edit source]

The "game over" dino sprite does not have a white border, unlike the rest of the sprites. This was presumably removed so there wouldn't be an odd gap between the dino and whatever you collided with. However, the original sprite with the border can still be found within the game's graphics.

Unused Used
Trexrunner-unusedsprite.png
Trexrunner-usedsprite.png

(Source: Juanmv94‎)

Debugging Features[edit | edit source]

Collision Boxes[edit | edit source]

The function checkForCollision() can accept the canvas context as an optional third parameter. This adds colored collision boxes around the dino and the next obstacle.
Trexrunner-collisionboxes.png

(Source: Juanmv94‎)

Unused Debugging Function[edit | edit source]

There's a function updateConfigSetting(setting, value) used only for debugging purposes that allowed to easily change some game variables while playing.
The settings this function can change are: GRAVITY, MIN_JUMP_HEIGHT, SPEED_DROP_COEFFICIENT, INITIAL_JUMP_VELOCITY, and SPEED.
The code for this function is the following:

        /**
         * Setting individual settings for debugging.
         * @param {string} setting
         * @param {*} value
         */
        updateConfigSetting: function (setting, value) {
            if (setting in this.config && value != undefined) {
                this.config[setting] = value;

                switch (setting) {
                    case 'GRAVITY':
                    case 'MIN_JUMP_HEIGHT':
                    case 'SPEED_DROP_COEFFICIENT':
                        this.tRex.config[setting] = value;
                        break;
                    case 'INITIAL_JUMP_VELOCITY':
                        this.tRex.setJumpVelocity(value);
                        break;
                    case 'SPEED':
                        this.setSpeed(value);
                        break;
                }
            }
        },

(Source: Juanmv94‎)

Author Comments[edit | edit source]

T-Rex Runner was developed in HTML5, making its source code accessible. This source code is fully commented.

ASCII Art Collision Details[edit | edit source]

The collision-related code has commented ASCII art explaining how it works.

    // Make collision box adjustments,
    // Central box is adjusted to the size as one box.
    //      ____        ______        ________
    //    _|   |-|    _|     |-|    _|       |-|
    //   | |<->| |   | |<--->| |   | |<----->| |
    //   | | 1 | |   | |  2  | |   | |   3   | |
    //   |_|___|_|   |_|_____|_|   |_|_______|_|
    //

(Source: Juanmv94‎)

Hidden Buttons[edit | edit source]

Trexrunner-buttons.png

At the bottom of the offline page, there's a hidden button container with three hidden buttons without separation. The top of this hidden container has a degraded effect for the error message upside. These three buttons were intended to be a download button, a reload button, and a show saved copy button. The download button is the only button with content, having an icon. Pressing the download button just disables the button, changing its color, and pressing the two last buttons will reload the page.

(Source: Juanmv94‎)