This commit is contained in:
Tuomas Katajisto 2025-11-02 20:48:25 +02:00
parent c85d878459
commit 2587bd1e5c
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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) {