From: Brendan Hansen Date: Wed, 11 Oct 2023 15:40:00 +0000 (-0500) Subject: misc updates X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=bar-game.git misc updates --- diff --git a/onyx-pkg.ini b/onyx-pkg.ini index 43c7e11..b439d16 100644 --- a/onyx-pkg.ini +++ b/onyx-pkg.ini @@ -12,7 +12,7 @@ lib_bin_directory=./run_tree/lib [dependencies] git://onyxlang.io/repo/openal=0.0.3 -git://onyxlang.io/repo/ogre=0.0.20 +git://onyxlang.io/repo/ogre=0.0.22 [dependency_folders] git://onyxlang.io/repo/openal=openal diff --git a/src/entity/editor.onyx b/src/entity/editor.onyx index ec94adf..c380d03 100644 --- a/src/entity/editor.onyx +++ b/src/entity/editor.onyx @@ -518,6 +518,7 @@ editor_draw :: () { } #local prepare_field_editor :: (v: any) { + array.clear(^field_buffer); array.ensure_capacity(^field_buffer, 256); conv.format_va(^field_buffer, "{\"d}", .[v]); } diff --git a/src/main.onyx b/src/main.onyx index 92bf33a..7d59e73 100644 --- a/src/main.onyx +++ b/src/main.onyx @@ -98,7 +98,6 @@ draw :: () { } #local { - debug_screen := true; game_fps: i32; record_frame_rate :: (dt: f32) { diff --git a/src/utils/logger.onyx b/src/utils/logger.onyx deleted file mode 100644 index be18493..0000000 --- a/src/utils/logger.onyx +++ /dev/null @@ -1,11 +0,0 @@ -// -// This may become an in-game or external file logger in the future, -// but for now this is just for logging to the command line. -// - -use core - -logf :: (level: Log_Level, format: str, args: ..any) { - buf: [2048] u8; - log(level, core.conv.format_va(buf, format, args)); -}