Skip to content

Instantly share code, notes, and snippets.

View HelloWorld017's full-sized avatar
๐Ÿ’
muguet - Hanahuruhibi,

nenw* HelloWorld017

๐Ÿ’
muguet - Hanahuruhibi,
View GitHub Profile
@HelloWorld017
HelloWorld017 / trex-nightmode.js
Created August 13, 2016 07:24
Chrome Offline tRex game nightmode
'use strict';
var tRex = Runner.instance_.tRex;
tRex.direction = 1;
var move = function move() {
tRex.xPos = Math.max(Math.min(tRex.xPos + tRex.direction * 5, 500), 0);
};
window.onkeydown = function (e) {