Click the cookie to bake cookies. You can also buy cursors, grandmas, robots, rockets, and MacPros with your cookies, to automaticly click the cookie for you. The ammount of cookies you get every second is displayed under the main cookie count. Warning: This fun game is very addicting. Also, try to find the hidden easter egg (hidden feature) to change the cookie to a secret thing. Quotes:"It's epic" - Andrew Hu Enjoy!
cookie
colorful
awesome
bake
game
cookieclicker
cool
graphics
differentcookies
timer
The showcase player uses a modified version of Processing.js in combination with jsweet to let students program their apps in Java code while still allowing for browser support.
Content created by students is scaled to fit the showcase frame while maintaining aspect ratio and cursor position. This is why some projects may appear blurry in fullscreen, or why some small details may not be visible on a small screen
<iframe width='500px' height='400px' src='https://nest.ktbyte.com/nest#2251' allowfullscreen></iframe>
//Cookie Clicker by Alex Ma and Christian Bernier //Variables: PImage cookie; PImage cookieP; PImage cursor; PImage grandma; PImage robot; PImage rocket; PImage mac; PImage appleLogoIMG; PImage appleLogoP; boolean cookiePressed; boolean appleLogo; boolean error; boolean errorOn; boolean hiddenFeatures; float cookies; int cursors; int hiddenBonus; int grandmas; int robots; int rockets; int macs; String code = "uuddlrlrba"; int codel = 9; boolean usedBefore; float cookiesPs; float seconds; int cursorCost; int grandmaCost; int robotCost; int rocketCost; int macCost; int cCostR; int gCostR; int rCostR; int rocCostR; int mCostR; int i = 0; void setup() { size(1024, 568); //VALUES TO CHANGE!! \/ \/ \/ //OPTIONAL FEATURES: //If you'd like to diable the crash key, please set the following value to false. errorOn = true; //The default crash key is g by the way. //HIDDEN FEATURES: //If you'd like to disable hidden features (easter eggs), pelase set //the following value to false. hiddenFeatures = true; //The default state is true (on). //If you'd like to change the ammount of secret cookies you get with the hidden //features, please change the value below. //Note: If you disable hidden features, this value will not matter. hiddenBonus = 15; //The default ammount is 15. //STOP CHANGING VALUES HERE!! /\ /\ /\ cookie = loadImage("http://i.imgur.com/7jotrjs.png"); // cookieP = loadImage("cookie.png"); appleLogoIMG = loadImage("http://i.imgur.com/MClsLsx.png"); appleLogoP = loadImage("http://i.imgur.com/MClsLsx.png"); cursor = loadImage("http://i.imgur.com/93AKDpW.png"); grandma = loadImage("http://i.imgur.com/9aEk63g.png"); robot = loadImage("http://i.imgur.com/n30sqBa.png"); rocket = loadImage("http://i.imgur.com/7JpI8st.png"); mac = loadImage("http://i.imgur.com/b0sxfU9.png"); usedBefore = false; imageMode(CENTER); textAlign(CENTER, CENTER); // cookie.resize(400, 400); // cookieP.resize(300, 300); // appleLogoIMG.resize(400, 400); // appleLogoP.resize(300, 300); // cursor.resize(100, 100); // grandma.resize(100, 100); // robot.resize(100, 100); // rocket.resize(100, 100); // mac.resize(100, 100); cookies=0; cursors=0; grandmas=0; robots=0; rockets=0; macs=0; cookiesPs=0; cursorCost=14; grandmaCost=99; robotCost=999; rocketCost=14999; macCost=99999; } void draw() { // if (error) { // println("Error: an Unknow error has occured. The user has pressed"); // println("the 'crash' key (g). This was a force crash. Please restart"); // println("the program. We are very sorry if you did not mean to do "); // println("this. If you'd like, you can undo this in the setup function"); // println("between the 2 comments that say so."); // exit(); // } if (hiddenFeatures) { if ( i>=code.length() ) { if (appleLogo) { appleLogo = false; } else { appleLogo = true; if (usedBefore==false) { cookies+=hiddenBonus; appleLogo = true; } usedBefore = true; } } } cCostR = cursorCost+1; gCostR = grandmaCost+1; rCostR = robotCost+1; rocCostR = rocketCost+1; mCostR = macCost+1; seconds = frameCount/6; if (seconds==1) { frameCount = 0; cookies = cookies + cookiesPs/10; cookiePressed = false; } background(0, 200, 0); textFont(createFont("Arial", 15)); text("Cookie Clicker v1.0 made by Alex Ma and Christian Bernier.", width/4+25, height-15); textFont(createFont("Impact", 75)); text("Cookies: "+(int)cookies, width/4, 50); if (appleLogo) { if (cookiePressed) { image(appleLogoP, width/4, height/2+75,300,300); } else { image(appleLogoIMG, width/4, height/2+75,400,400); } } if (appleLogo==false) { if (cookiePressed) { image(cookie, width/4, height/2+75,300,300); } else { image(cookie, width/4, height/2+75,400,400); } } textFont(createFont("Arial", 30)); text("Cursors: "+cursors, width/4*3-100, 50); text("$"+cCostR, width-50, 50); image(cursor, width/6*5, 50,100,100); text("Cookies Per Second: "+(int)cookiesPs, width/4, 125); text("Grandmas: "+grandmas, width/4*3-100, 150); text("$"+gCostR, width-50, 150); image(grandma, width/6*5, 150,100,100); text("Robots: "+robots, width/4*3-100, 250); text("$"+rCostR, width-50, 260); image(robot, width/6*5, 260,100,100); text("Rockets: "+rockets, width/4*3-100, 350); text("$"+rocCostR, width-50, 360); image(rocket, width/6*5, 360,100,100); text("MacPros: "+macs, width/4*3-100, 450); text("$"+mCostR, width-75, 460); image(mac, width/6*5, 460,100,100); } void mousePressed() { if (mouseX>width/4-200 && mouseX<width/2 && mouseY > height/2-75) { cookies++; cookiePressed = true; } if (mouseX>width/3*2 && mouseY < 75) { if (cookies>=cCostR) { cookiesPs+=0.2; cursorCost+=2; cookies-=cursorCost; cursors++; } } if (mouseX>width/3*2 && mouseY>76 && mouseY < 200) { if (cookies>=gCostR) { cookiesPs+=0.8; grandmaCost+=11; cookies-=gCostR; grandmas++; } } if (mouseX>width/3*2+100 && mouseY>211 && mouseY < 310) { if (cookies>=rCostR) { cookiesPs+=1.5; robotCost+=23; cookies-=rCostR; robots++; } } if (mouseX>width/3*2+100 && mouseY>311 && mouseY < 410) { if (cookies>=rocCostR) { cookiesPs+=15; rocketCost+=51; cookies-=rocCostR; rockets++; } } if (mouseX>width/3*2+100 && mouseY>411 && mouseY < 510) { if (cookies>=mCostR) { cookiesPs+=50; macCost+=250; cookies-=mCostR; macs++; } } } void keyPressed() { if (key == 'g') { if (errorOn) { error = true; } } if ( i == code.length() ) { i = 0; } String codeChar = code.substring(i,i+1); if ( key == CODED ) { // println(code.substring(i,i+1).equals("u")); // println(keyCode==UP); if ( (keyCode == UP && codeChar.equals("u") ) || (keyCode == DOWN && codeChar.equals("d") ) || (keyCode == LEFT && codeChar.equals("l") ) || (keyCode == RETURN && codeChar.equals("e") ) || (keyCode == RIGHT && codeChar.equals("r") ) ){ i++; // println( "SOEHOSEHOIESGHS: "+i ); } else { i = 0; //println( i ); } } else { if ( ( (key == 'a' || key == 'A') && codeChar.equals("a") ) || ( (key == 'b' || key == 'B') && codeChar.equals("b") ) ) { i++; //println( i ); } else { i = 0; //println( i ); } } }