diff options
-rw-r--r-- | fonts/VT323-Regular.ttf | bin | 149688 -> 0 bytes | |||
-rw-r--r-- | fonts/monogram-extended.ttf | bin | 0 -> 41508 bytes | |||
-rw-r--r-- | game.css | 7 | ||||
-rw-r--r-- | game.scm | 8 |
4 files changed, 11 insertions, 4 deletions
diff --git a/fonts/VT323-Regular.ttf b/fonts/VT323-Regular.ttf Binary files differdeleted file mode 100644 index 6aec599..0000000 --- a/fonts/VT323-Regular.ttf +++ /dev/null diff --git a/fonts/monogram-extended.ttf b/fonts/monogram-extended.ttf Binary files differnew file mode 100644 index 0000000..4d4a390 --- /dev/null +++ b/fonts/monogram-extended.ttf @@ -1,3 +1,10 @@ +@font-face { + font-family: 'monogram'; + src: url('fonts/monogram-extended.ttf'); + font-weight: normal; + font-style: normal; +} + body { background-color: #3f2832; margin: 0; @@ -1118,7 +1118,7 @@ ;; TODO: Don't allocate strings every frame when the UI ;; values rarely change. (set-fill-color! context "#ffffff") - (set-font! context "bold 16px monospace") + (set-font! context "bold 16px monogram") (set-text-align! context "right") (fill-text context (string-append "x" (number->string *player-lives*)) (- game-width 4.0) y) @@ -1140,17 +1140,17 @@ (match *game-state* ('game-over (set-fill-color! context "#ffffff") - (set-font! context "bold 36px monospace") + (set-font! context "bold 36px monogram") (set-text-align! context "center") (fill-text context "GAME OVER" (/ game-width 2.0) (/ game-height 2.0))) ('game-win (set-fill-color! context "#ffffff") - (set-font! context "bold 36px monospace") + (set-font! context "bold 36px monogram") (set-text-align! context "center") (fill-text context "WELL DONE" (/ game-width 2.0) (/ game-height 2.0))) ('paused (set-fill-color! context "#ffffff") - (set-font! context "bold 36px monospace") + (set-font! context "bold 36px monogram") (set-text-align! context "center") (fill-text context "PAUSED" (/ game-width 2.0) (/ game-height 2.0))) (_ #t)) |