From 1bc12f576378efe629082fe649fc1570c8b0f6e7 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 28 Nov 2021 16:28:20 -0600 Subject: [PATCH] syncing --- tests/breakout.onyx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.25.1