Compare commits
No commits in common. "c85d87845946a410ccff99f171001322be249b70" and "2fd38144bbaf0b4b121f18eb626bd699f72327f4" have entirely different histories.
c85d878459
...
2fd38144bb
@ -167,7 +167,6 @@ frame :: () {
|
|||||||
while delta_time_accumulator > (1.0/60.0) {
|
while delta_time_accumulator > (1.0/60.0) {
|
||||||
game_tick(1.0/60.0);
|
game_tick(1.0/60.0);
|
||||||
delta_time_accumulator -= (1.0/60.0);
|
delta_time_accumulator -= (1.0/60.0);
|
||||||
input_per_frame_event_and_flag_update();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fonsClearState(state.fons);
|
fonsClearState(state.fons);
|
||||||
@ -187,6 +186,7 @@ frame :: () {
|
|||||||
draw_prepared_text(debug_font, 10, 10, .{0.0, 1.0, 0.0, 1.0});
|
draw_prepared_text(debug_font, 10, 10, .{0.0, 1.0, 0.0, 1.0});
|
||||||
draw_editor();
|
draw_editor();
|
||||||
render();
|
render();
|
||||||
|
input_per_frame_event_and_flag_update();
|
||||||
#if MEM_DEBUG {
|
#if MEM_DEBUG {
|
||||||
memory_visualizer_per_frame_update();
|
memory_visualizer_per_frame_update();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,12 +33,6 @@ animation_draw :: (player: *Animation_Player, position: Vector3, flipX: bool = f
|
|||||||
animation_set :: (player: *Animation_Player, animation: string) {
|
animation_set :: (player: *Animation_Player, animation: string) {
|
||||||
player.current_frame = 0;
|
player.current_frame = 0;
|
||||||
player.current_animation = table_find_pointer(*g_animations, animation);
|
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 {
|
animation_is :: (player: *Animation_Player, animation: string) -> bool {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user