createCanvas(windowWidth, windowHeight);
tree = loadImage("tree.jpeg");
crystal = loadImage("snow.jpeg");
font = loadFont("Zapfino.ttf");
for (var i=0; i<num; i++) {
tree_x = windowWidth/2-340;
tree_y = windowHeight-787;
image(tree, tree_x, tree_y);
scale(amp*sin(radians(frameCount*0.5)));
rotate(radians(frameCount*0.5));
image(crystal, -100, -100, 200, 200);
translate(windowWidth-100, 100);
scale(amp*sin(radians(frameCount*0.5)-PI/2));
rotate(radians(frameCount*0.5));
image(crystal, -100, -100, 200, 200);
translate(x_R, windowHeight-100);
scale(amp*sin(radians(frameCount*0.5)-PI/2*3));
rotate(radians(frameCount*0.5));
image(crystal, -100, -100, 200, 200);
translate(windowWidth-100, windowHeight-100);
scale(amp*sin(radians(frameCount*0.5)-PI));
rotate(radians(frameCount/2));
image(crystal, -100, -100, 200, 200);
for (var i=0; i<num; i++) {
tree_x = windowWidth/10-280;
} else if (enter_count==2) {
text("Merry Christmas!!", (windowWidth/2+windowWidth-100)/2, windowHeight*4/10);
} else if (enter_count==3) {
text("Merry Christmas!!", (windowWidth/2+windowWidth-100)/2, windowHeight*4/10);
text("Enjoy Processing", (windowWidth/2+windowWidth-100)/2, windowHeight*6/10);
} else if (enter_count==4) {
text("Merry Christmas!!", (windowWidth/2+windowWidth-100)/2, windowHeight*4/10);
text("Enjoy Processing", (windowWidth/2+windowWidth-100)/2, windowHeight*6/10);
text("by Akiyoshi", (windowWidth/2+windowWidth-100)/2, windowHeight*8/10);
}else if(enter_count==5){
text("Merry Christmas!!", (windowWidth/2+windowWidth-100)/2, windowHeight*4/10);
text("Enjoy Processing", (windowWidth/2+windowWidth-100)/2, windowHeight*6/10);
text("by Akiyoshi", (windowWidth/2+windowWidth-100)/2, windowHeight*8/10);
}else if(enter_count==6){
tree_x = windowWidth/2-340;
if(keyCode === RIGHT_ARROW && flag==false && wind<10){
}else if(keyCode === LEFT_ARROW && flag==false && wind>-10){