Compare commits
2 Commits
2fd38144bb
...
c85d878459
| Author | SHA1 | Date | |
|---|---|---|---|
| c85d878459 | |||
| 6f5f9fe409 |
@ -167,6 +167,7 @@ frame :: () {
|
||||
while delta_time_accumulator > (1.0/60.0) {
|
||||
game_tick(1.0/60.0);
|
||||
delta_time_accumulator -= (1.0/60.0);
|
||||
input_per_frame_event_and_flag_update();
|
||||
}
|
||||
}
|
||||
fonsClearState(state.fons);
|
||||
@ -186,7 +187,6 @@ frame :: () {
|
||||
draw_prepared_text(debug_font, 10, 10, .{0.0, 1.0, 0.0, 1.0});
|
||||
draw_editor();
|
||||
render();
|
||||
input_per_frame_event_and_flag_update();
|
||||
#if MEM_DEBUG {
|
||||
memory_visualizer_per_frame_update();
|
||||
}
|
||||
|
||||
@ -33,6 +33,12 @@ 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_if_not :: (player: *Animation_Player, animation: string) {
|
||||
if !animation_is(player, animation) {
|
||||
animation_set(player, animation);
|
||||
}
|
||||
}
|
||||
|
||||
animation_is :: (player: *Animation_Player, animation: string) -> bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user