var __animations__ = {};
var animationKeys = [""];
var animations = JSON.parse("{}");
var edraw = function () { },
ekeyTyped = function () { },
ekeyPressed = function () { },
ekeyReleased = function () { },
emousePressed = function () { },
emouseReleased = function () { },
emouseClicked = function () { },
emouseDragged = function() { },
emouseMoved = function() { };
var __intervals__ = [];
var __timeouts__ = [];
function loadin(key) {
var ajson = animations[animationKeys[key]].info;
loadImage(ajson.sourceUrl, function (img) {
img = loadAnimation(loadSpriteSheet(img, ajson.frameSize.x, ajson.frameSize.y, ajson.frameCount));
img.looping = ajson.looping;
img.frameDelay = ajson.frameDelay;
__animations__[ajson.name] = img;
if(Object.keys(__animations__).length === animationKeys.length) { boot() }
});
}
if (animationKeys[0] === "") { boot() }
else {
for (var i = 0; i < animationKeys.length; i++) {
if(animationKeys[i] !== "") {
loadin(i);
}
}
}
function boot() {
World.pInst._predefinedSpriteAnimations = Game.pInst._predefinedSpriteAnimations = __animations__;
Game.pInst.frameCount = World.pInst.frameCount = 0;
var title = "From Sam";
var content = "Alright guys the name is @sam your probably heard of me the \"hacker\" \nbut wutadam, I dont see your point, theres nothing you can do about it if you were smart enough you will find a way to bypass it\n\nSo you can call me the hacker, IF ANYONE is not nice to me I will use the hacks";
var author = "Sam";
var type = "NEWS";
// Don't edit unless you know what you're doing.
showMobileControls(true, true, true, true);
textFont("sans-serif");
var newsText = 0;
var newsCircleSize = 0;
var newsCircleOpacity = 0.5;
var newsCircle1 = 0;
var newsCircle2 = 0;
var newsStroke = 20;
var titleY = -50;
var titleBar = 0;
var contentY = 400;
var contentScroll = 0;
window.edraw = function() {
background("white");
if (World.frameCount < 30) {
newsText += (50-newsText)/3;
newsCircle1 += (1080-newsCircle1)/10;
newsCircle2 += (1080-newsCircle1)/14;
newsStroke += (0-newsStroke)/10;
newsCircleSize += (400-newsCircleSize)/10;
}
else if (World.frameCount == 30) {
newsText = 49;
}
else {
if (newsText > 0) {
newsText -= (50-newsText)/2;
}
else {
newsText = 0;
}
titleY += (0-titleY)/5;
titleBar += (390-titleBar)/5;
contentY += (60-contentY)/5;
if (keyDown("up")) {
contentScroll -= 10;
}
if (keyDown("down")) {
contentScroll += 10;
}
contentScroll = Math.max(0, contentScroll);
}
newsCircleOpacity += (0-newsCircleOpacity)/10;
if (newsStroke > 2) {
noFill();
stroke("lightgray");
strokeWeight(newsStroke);
arc(200, 200, 200, 200, newsCircle1, newsCircle2, 360);
}
noStroke();
fill("rgba(127, 127, 127, " + newsCircleOpacity + ")");
ellipse(200, 200, newsCircleSize);
if (newsText > 0) {
fill("black");
textAlign(CENTER, CENTER);
textSize(newsText);
text(type, 200, 200);
}
textSize(15);
fill("gray");
textAlign(LEFT, TOP);
text("@" + author, 5, contentY-contentScroll);
textSize(20);
fill("black");
text(content, 5, contentY-contentScroll+20, 390);
fill("white");
rect(0, titleY, 400, 50);
fill("black");
textAlign(CENTER, TOP);
textSize(25);
text(title, 200, titleY+5);
fill("gray");
textSize(15);
textAlign(LEFT, TOP);
text("Click here to see controls.", 5, titleY+30);
textAlign(RIGHT, TOP);
fill("black");
ellipse(200, 50, titleBar, 2);
if (hover(0, titleY+30, 400, titleY+50) && mouseWentDown("left")) {
prompt("Computer\n- Up/down arrow keys: scroll\n\nMobile\n- Up/down joystick: scroll");
}
}
function hover(x1, y1, x2, y2) {
return (World.mouseX >= x1 && World.mouseY >= y1 && World.mouseX <= x2 && World.mouseY <= y2);
}
}
function draw() {
edraw();
}
function eloadImage(n,e,t){return loadImage("".concat(0>n.indexOf("//")?"https://studio.code.org/v3/assets/jjsIYz68VKd0-FW0Mn28UYp1DFcRJRTD6APg2SlJ8S4/":"").concat(n),function(n){"function"==typeof e&&e(n)},function(){"function"==typeof t&&t()})}function eplaySound(n,e,t){playSound("".concat(0>n.indexOf("//")?"https://studio.code.org/v3/assets/jjsIYz68VKd0-FW0Mn28UYp1DFcRJRTD6APg2SlJ8S4/":"").concat(n),e,function(n){"function"==typeof t&&t(n)})}function estopSound(n){stopSound("string"==typeof n?"".concat(0>n.indexOf("//")?"https://studio.code.org/v3/assets/jjsIYz68VKd0-FW0Mn28UYp1DFcRJRTD6APg2SlJ8S4/":"").concat(n):void 0)}function eloadFont(n,e){return loadFont("".concat(0>n.indexOf("//")?"https://studio.code.org/v3/assets/jjsIYz68VKd0-FW0Mn28UYp1DFcRJRTD6APg2SlJ8S4/":"").concat(n),function(n){"function"!=typeof e||n||e(n)})}function esetInterval(n,e){return __intervals__.push(setInterval(n,e)),__intervals__[__intervals__.length-1]}function esetTimeout(n,e){return __timeouts__.push(setTimeout(n,e)),__timeouts__[__timeouts__.length-1]}function eclearInterval(n){clearInterval(n)}function eclearTimeout(n){clearTimeout(n)}function keyTyped(){ekeyTyped()}function keyPressed(){ekeyPressed()}function keyReleased(){ekeyReleased()}function mousePressed(){emousePressed()}function mouseReleased(){emouseReleased()}function mouseClicked(){emouseClicked()}function mouseDragged(){emouseDragged()}function mouseMoved(){emouseMoved()}
it was only reported it wasn't personally deleted if you care inject it into a new project kudos to the emulator i built to reconstruct these projects