Advertisement
Guest User

World (readable)

a guest
Sep 15th, 2013
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // run this function to update the spinning globe for another iteration
  2. var updateWorld = function() {
  3.     var e, x, r, t;
  4.     var newSource = "<pre>";
  5.     var worldParts = ["zw2",
  6.          "l6k\n",
  7.           "e3t",
  8.           "jnt",
  9.           "qj2",
  10.           "xh2 x",
  11.           "2kty2",
  12.           "wrt",
  13.           "13n2",
  14.           "3n9h2\n",
  15.           "3pdxt",
  16.           "1csb yz",
  17.           "3iyb6k",
  18.           "3pk72",
  19.           "3nm\nr2",
  20.           ""
  21.     ];
  22.     for (var y in worldParts) {
  23.         e = x = r = [];
  24.         var t = String(parseInt(worldParts[y], 36));
  25.  
  26.         for (var a in t) {
  27.             for (r = !r, i = 0; t[a] > i; i += .05) {
  28.                 with(Math) {
  29.                     x -=  .05;
  30.                     var o = (new Date() / 1e3) + (x / PI);
  31.                     if (cos(o) < 0) {
  32.                         e[~~ (32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r;
  33.                     }
  34.                 }
  35.             }
  36.             for (x = 0; 122 > x;) {
  37.                 newSource += "   *#"[e[x++] + e[x++]] || (S = ("eval(updateWorld=\'" + updateWorld.split(B = "\\\\").join(B + B).split(Q = "\'").join(B + Q) + Q + ")//m1k")[x / 2 + 61 * y - 1]).fontcolor(/\\w/.test(S) && "#03B");
  38.             }
  39.         }
  40.        
  41.         newSource = newSource + B + "\\n";
  42.  
  43.         document.body.innerHTML = newSource;
  44.     }
  45. };
  46.  
  47. // BUTTTTT it has to be a string, or we won't be able to manipulate it as a string
  48. var updateWorld = updateWorld.toString();
  49.  
  50. // update as fast as we can (minimum browser timeout = 4ms)
  51. setTimeout(updateWorld, 4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement