Skip to content

Instantly share code, notes, and snippets.

@atkvishnu
Last active December 8, 2022 15:38
Show Gist options
  • Save atkvishnu/7fab89403a07f9015f80680ad46e8cba to your computer and use it in GitHub Desktop.
Save atkvishnu/7fab89403a07f9015f80680ad46e8cba to your computer and use it in GitHub Desktop.
chrome://dino/
  1. Disable gameover functionality
var original = Runner.prototype.gameOver
Runner.prototype.gameOver = function (){}
  1. Enable gameover functionality
Runner.prototype.gameOver = original
  1. Change jump height of trex
Runner.instance_.tRex.setJumpVelocity(<height>);

Constraints:
height: int

  1. Change speed of trex
Runner.instance_.setSpeed(<speed>)

Constraints:
speed: int

  • -ve < speed < +ve

-ve speed makes the trex go the other way around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment