Skip to content

Commit a080c55

Browse files
remove unsless function, add touch pressed
1 parent cfccc4d commit a080c55

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

Clock Time.js

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ function mousePressed() {
123123
userStartAudio();
124124
}
125125

126+
function touchStarted() {
127+
userStartAudio();
128+
}
129+
126130
function setup(){
127131

128132

@@ -193,24 +197,6 @@ function addScoreText(fontSize,factorScale,font,title,value,posX,posY){
193197
text(title+"\n"+value, posX * factorScale, posY * factorScale);
194198
}
195199

196-
function addTotalCoinsText(){
197-
fill(255,223,201);
198-
noStroke();
199-
textAlign(CENTER);
200-
textSize(textSizeScores * factorScale);
201-
textFont(marioFont);
202-
text("COINS\n"+totalCoins, posXTotalCoinsText * factorScale, posYTotalCoinsText * factorScale);
203-
}
204-
205-
function addTotalTimeText(){
206-
fill(255,223,201);
207-
noStroke();
208-
textAlign(CENTER);
209-
textSize(textSizeScores * factorScale);
210-
textFont(marioFont);
211-
text("TIME\n"+totalTime, posXTotalTimeText * factorScale, posYTotalTimeText * factorScale);
212-
}
213-
214200
function goombaAnimation(){
215201
image(goomba,posXGoombaCurrent*factorScale,posYGoombaStart*factorScale);
216202

0 commit comments

Comments
 (0)