From: Brendan Hansen Date: Sun, 28 Nov 2021 22:28:20 +0000 (-0600) Subject: syncing X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=1bc12f576378efe629082fe649fc1570c8b0f6e7;p=heartbreak.git syncing --- diff --git a/tests/breakout.onyx b/tests/breakout.onyx index ef4c343..e074c8c 100644 --- a/tests/breakout.onyx +++ b/tests/breakout.onyx @@ -2,8 +2,13 @@ use package core -load :: () { +assets : struct { + ["./assets/fonts/mononoki-Regular Nerd Font Complete Mono.ttf", 72] + big_font: hb.graphics.Font; +} +load :: () { + hb.utils.load_assets(^assets); } update :: (dt: f32) { @@ -11,5 +16,6 @@ update :: (dt: f32) { } draw :: () { + hb.graphics.setFont(assets.big_font); hb.graphics.print("Hello, breakout!", 100, 100); } \ No newline at end of file