Skip to content

Commit

Permalink
New Updates
Browse files Browse the repository at this point in the history
New Updates
  • Loading branch information
yanyiyi committed Aug 18, 2015
1 parent 2b0ec5c commit 1e597d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Binary file added coscup-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,img11,img12;
var img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,img11,img12,imgBK;
var fTitle;
var tName,tSay,camX,camY,camOffsetX,camOffsetY,yearX,nBtn;

Expand All @@ -15,9 +15,8 @@ function preload() {
img9 = loadImage("coscup-09.png");
img10 = loadImage("coscup-10.png");
img11 = loadImage("coscup-11.png");
img12 = loadImage("coscup-11.png");
img12 = loadImage("coscup-12.png");
imgBK = loadImage("img_bk-01.png");
// fTitle = loadFont("NotoSansCJKtc-Bold.otf");
}

function setup() {
Expand Down Expand Up @@ -57,7 +56,7 @@ function setup() {
}
var displayName,displaySay,displayX,displayY,ofX,ofY;
function draw() {

image(imgBK, 0, 0);
displayName = tName.value();
displaySay = tSay.value();
displayX = camX.value();
Expand Down Expand Up @@ -92,8 +91,10 @@ image(capture, 350+ofX-displayX/2, 315+ofY-displayY/2, displayX, displayY);
break;
case 8:
image(img5, 0, 0);
break;
case 9:
image(img4, 0, 0);
break;
case 10:
image(img3, 0, 0);
break;
Expand All @@ -104,7 +105,7 @@ image(capture, 350+ofX-displayX/2, 315+ofY-displayY/2, displayX, displayY);
image(img1, 0, 0);
break;
}
if(imgX > 1){
if(imgX > 5){
fill('#545046');
textSize(28);
textFont("CSong3HK-Medium");
Expand Down

0 comments on commit 1e597d7

Please sign in to comment.