@@ -86,13 +86,13 @@ export function drawReverseFlash(ctx, timer) {
8686
8787export function drawIdleScreen ( ctx ) {
8888 ctx . fillStyle = '#212121' ;
89- ctx . font = '18px "Press Start 2P", monospace' ;
89+ ctx . font = '20px "Press Start 2P", monospace' ;
9090 ctx . textAlign = 'center' ;
91- ctx . fillText ( 'runner' , WORLD . width / 2 , WORLD . height / 2 - 12 ) ;
91+ ctx . fillText ( 'runner' , WORLD . width / 2 , WORLD . height / 2 - 16 ) ;
9292
93- ctx . font = '8px "Press Start 2P", monospace' ;
93+ ctx . font = '9px "Press Start 2P", monospace' ;
9494 ctx . fillStyle = '#666' ;
95- ctx . fillText ( 'press space or tap' , WORLD . width / 2 , WORLD . height / 2 + 16 ) ;
95+ ctx . fillText ( 'press space or tap' , WORLD . width / 2 , WORLD . height / 2 + 20 ) ;
9696 ctx . textAlign = 'left' ;
9797}
9898
@@ -101,20 +101,20 @@ export function drawGameOver(ctx, score, highScore) {
101101 ctx . fillRect ( 0 , 0 , WORLD . width , WORLD . height ) ;
102102
103103 ctx . fillStyle = '#c0392b' ;
104- ctx . font = '14px "Press Start 2P", monospace' ;
104+ ctx . font = '16px "Press Start 2P", monospace' ;
105105 ctx . textAlign = 'center' ;
106- ctx . fillText ( 'game over' , WORLD . width / 2 , WORLD . height / 2 - 16 ) ;
106+ ctx . fillText ( 'game over' , WORLD . width / 2 , WORLD . height / 2 - 20 ) ;
107107
108108 ctx . fillStyle = '#212121' ;
109- ctx . font = '8px "Press Start 2P", monospace' ;
109+ ctx . font = '9px "Press Start 2P", monospace' ;
110110 ctx . fillText ( `score: ${ score } ` , WORLD . width / 2 , WORLD . height / 2 + 8 ) ;
111111
112112 if ( score >= highScore && score > 0 ) {
113113 ctx . fillStyle = '#e67e22' ;
114- ctx . fillText ( 'new record!' , WORLD . width / 2 , WORLD . height / 2 + 24 ) ;
114+ ctx . fillText ( 'new record!' , WORLD . width / 2 , WORLD . height / 2 + 28 ) ;
115115 }
116116
117117 ctx . fillStyle = '#666' ;
118- ctx . fillText ( 'press space to retry' , WORLD . width / 2 , WORLD . height / 2 + 44 ) ;
118+ ctx . fillText ( 'press space to retry' , WORLD . width / 2 , WORLD . height / 2 + 52 ) ;
119119 ctx . textAlign = 'left' ;
120120}
0 commit comments