Project Sketch
I'm currently working on making a catching apples game. I want to draw a basket and apples falling from the sky. I would like to work on matching the colors to my website but as of now this is just an idea on how it will be!
function preload(){
font=loadFont("assets/Bungee-Regular.ttf");
}
function setup() {
createCanvas(1280, 720);
textFont(font);
textSize(24);
}
function draw() {
background(153,204,255);
fill(34,139,34);
rect(0,550,1280,200);
noStroke();
fill(204,0,0)
textSize(100);
if(keyIsPressed) {
fill(255,153,51);
}
text("Catch Some Apples!", 45,680);
// trunk
fill(139, 69, 19); // brown
rect(200, 290, 60, 300, 10);
// tree
fill(34, 139, 34); // green
ellipse(230, 310, 180, 180);
ellipse(140, 270, 180, 180);
ellipse(230, 200, 180, 180);
ellipse(320, 270, 180, 180);
}


Comments
Post a Comment