Skip to content

Instantly share code, notes, and snippets.

@RGamberini
Created June 27, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RGamberini/6d0782e37a148ff3df83539134715f84 to your computer and use it in GitHub Desktop.
Save RGamberini/6d0782e37a148ff3df83539134715f84 to your computer and use it in GitHub Desktop.
var _0x2efe=['\x73\x74\x61\x72\x74\x69\x6e\x67\x59','\x73\x70\x65\x65\x64','\x75\x70\x64\x61\x74\x65','\x76\x65\x6c\x6f\x63\x69\x74\x79','\x63\x6f\x73','\x74\x72\x61\x6e\x73\x66\x6f\x72\x6d','\x74\x72\x61\x6e\x73\x6c\x61\x74\x65\x28','\x66\x6c\x6f\x6f\x72','\x70\x78\x2c','\x70\x78\x29','\x2e\x67\x62\x5f\x78\x61','\x67\x65\x74\x42\x6f\x75\x6e\x64\x69\x6e\x67\x43\x6c\x69\x65\x6e\x74\x52\x65\x63\x74'];(function(_0x171fdb,_0x30d3cc){var _0x14b35f=function(_0x57de15){while(--_0x57de15){_0x171fdb['push'](_0x171fdb['shift']());}};_0x14b35f(++_0x30d3cc);}(_0x2efe,0x18a));var _0x5dcc=function(_0x3be9b6,_0x39b46e){_0x3be9b6=_0x3be9b6-0x0;var _0x24f49c=_0x2efe[_0x3be9b6];return _0x24f49c;};var _0x18ff11=$(_0x5dcc('0x0'));var _0x550d5d=_0x18ff11[_0x5dcc('0x1')]();function _0x33e5ff(_0x52434b,_0x57713c){return _0x52434b>0x0&&_0x52434b<_0x57713c;}var _0x4812d8={};_0x4812d8['\x73\x74\x61\x72\x74\x69\x6e\x67\x58']=_0x550d5d.x;_0x4812d8[_0x5dcc('0x2')]=_0x550d5d.y;_0x4812d8['\x6f\x66\x66\x73\x65\x74\x58']=0x0;_0x4812d8['\x6f\x66\x66\x73\x65\x74\x59']=0x0;_0x4812d8[_0x5dcc('0x3')]=0x6;_0x4812d8['\x76\x65\x6c\x6f\x63\x69\x74\x79']=[0x0,0x0];_0x4812d8[_0x5dcc('0x4')]=function(){realX=this.startingX+this.offsetX;realY=this.startingY+this.offsetY;if(!_0x33e5ff(realX+this.velocity[0x0],window.innerWidth-_0x18ff11.offsetWidth))this.velocity[0x0]=-this.velocity[0x0];if(!_0x33e5ff(realY+this.velocity[0x1],window.innerHeight-_0x18ff11.offsetHeight))this.velocity[0x1]=-this.velocity[0x1];this.offsetX+=this.velocity[0x0];this.offsetY+=this.velocity[0x1];};randomAngle=Math['\x72\x61\x6e\x64\x6f\x6d']()*(Math['\x50\x49']*0x2);_0x4812d8[_0x5dcc('0x5')]=[Math[_0x5dcc('0x6')](randomAngle)*_0x4812d8['\x73\x70\x65\x65\x64'],Math['\x73\x69\x6e'](randomAngle)*_0x4812d8['\x73\x70\x65\x65\x64']];function _0x298f81(){_0x4812d8[_0x5dcc('0x4')]();_0x18ff11['\x73\x74\x79\x6c\x65'][_0x5dcc('0x7')]=_0x5dcc('0x8')+Math[_0x5dcc('0x9')](_0x4812d8['\x6f\x66\x66\x73\x65\x74\x58'])+_0x5dcc('0xa')+Math[_0x5dcc('0x9')](_0x4812d8['\x6f\x66\x66\x73\x65\x74\x59'])+_0x5dcc('0xb');requestAnimationFrame(_0x298f81);}requestAnimationFrame(_0x298f81);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment