From 2587bd1e5c663ac4fb7db06aacc65c9bd54d079d Mon Sep 17 00:00:00 2001 From: Katajisto Date: Sun, 2 Nov 2025 20:48:25 +0200 Subject: [PATCH] misc --- mise.toml | 3 ++- src/rendering/animation.jai | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 0c56e23..b2df8e7 100644 --- a/mise.toml +++ b/mise.toml @@ -1,3 +1,4 @@ [tasks] build_web = "$HOME/bin/jai/bin/jai-linux first.jai - wasm release && rm -rf dist/packs/ && cp -r packs/ dist/ && rm dist/main.o" -ship_web = "" +ship_web = "./game/ship_web.sh" +run = "$HOME/bin/jai/bin/jai-linux first.jai && ./first" diff --git a/src/rendering/animation.jai b/src/rendering/animation.jai index b11c11c..384c839 100644 --- a/src/rendering/animation.jai +++ b/src/rendering/animation.jai @@ -33,6 +33,10 @@ animation_draw :: (player: *Animation_Player, position: Vector3, flipX: bool = f animation_set :: (player: *Animation_Player, animation: string) { player.current_frame = 0; player.current_animation = table_find_pointer(*g_animations, animation); +} + +animation_set_queued :: (player: *Animation_Player, animation: string) { + player.queued_animation = table_find_pointer(*g_animations, animation); } animation_set_if_not :: (player: *Animation_Player, animation: string) {