ackvonhuelio
/*
@Author: Ack Prod.
@Decompiler: Varrience
@Version: 0.1
* Source generated by using ``.split(";") then recompiling with .join(";\n")
* It's a neat little project that didn't need to be put into 1 line though so i did it for myself or anyone else
* Version number was included just in case anything changes since I decompiled it early
*/
var ranks = [ 'A', 'B', 'C', 'D', 'F', ];
var aRank = 'F';
var zoom = 0.9;
var rot = 10;
var bg = color(255,255,255);
function draw() { if(zoom < 1){ zoom += 0.01;
} if(zoom > 1){ zoom = 1;
} if(rot >0){ rot -= 1;
} if(rot < 0){ rot += 1;
} rot = round(rot*10)/10;
background(bg);
push();
translate(200,200);
rotate(rot);
translate(-200,-200);
textAlign(CENTER,BASELINE);
textSize(30);
fill('black');
text('ackvonhuelio\'s rank:',200,100);
textSize(50);
text(aRank,200,200);
pop();
camera.zoom = zoom;
if(round(round(World.frameCount/20)*1000)/1000 === round((World.frameCount/20)*1000)/1000){ zoom = random(0.8,0.95) ;
rot = random(-20,20);
bg = color(random(0,255),random(0,255),random(0,255));
var rankNum = 0;
for(var i = 0; i < ranks.length; i++){ if(aRank.includes(ranks[i])){ rankNum = i;
} } if(aRank.includes('-')){ aRank = ranks[rankNum];
}else if(aRank.includes('+') && rankNum != 0){ aRank = ranks[rankNum-1];
aRank = aRank + '-';
}else{ aRank = aRank + '+';
} } }