diff --git a/sketch_250819b_CMYKGame.js b/sketch_250819b_CMYKGame.js index 80037b1..6e56f85 100644 --- a/sketch_250819b_CMYKGame.js +++ b/sketch_250819b_CMYKGame.js @@ -19,16 +19,16 @@ const CMYK_STEPS = [0, 25, 50, 75, 100]; // helpottaa valintoja let clickSound, goodSound, badSound; let muted = true; +let font; + function preload(){ - // Kevyet piippisoundit (WebAudio, luodaan lennossa) + font = loadFont("FuturaBQ-DemiBold.otf"); } function setup(){ createCanvas(windowWidth, windowHeight); - PFont mono; - mono = createFont("FuturaBQ-DemiBold.otf", 128); - textFont(mono); + textFont(font); textAlign(CENTER, CENTER); noStroke(); refreshLeaderboard(); @@ -86,7 +86,7 @@ function drawTitle(){ textSize(min(width, height) * 0.03); text(t2, width/2, height*0.45, width*0.9); fill(180); - text('▶ Aloita – 60 s kierros', width/2, height*0.6); + text('Aloita – 60 s kierros', width/2, height*0.6); } function drawHUD(){ @@ -165,7 +165,7 @@ function drawGameOver(){ textSize(min(width, height) * 0.04); text('Pisteesi: ' + score, width/2, height*0.48); fill(180); - text('▶ Aloita uudestaan', width/2, height*0.6); + text('Aloita uudestaan painamalla!', width/2, height*0.6); } function mousePressed(){