misc
This commit is contained in:
parent
c85d878459
commit
2587bd1e5c
@ -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"
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user