diff --git a/feely_pona.cpp b/feely_pona.cpp index b981096..601df62 100644 --- a/feely_pona.cpp +++ b/feely_pona.cpp @@ -1230,6 +1230,8 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input entity->sprite_height.meters -= 1; Dqn_Log_InfoF("Height: %.1f", entity->sprite_height.meters); } + + game->camera.world_pos = FP_Game_CalcEntityWorldPos(game, entity->handle) - Dqn_V2_InitV2I(platform->core.window_size) * .5f; } } @@ -1694,8 +1696,8 @@ void TELY_DLL_FrameUpdate(void *user_data) TELY_RFui_TextF(rfui, " | %dx%d %.1fHz | TSC %.1f GHz", - platform->core.display.size.w, - platform->core.display.size.h, + platform->core.window_size.w, + platform->core.window_size.h, platform->core.display.refresh_rate, platform->core.tsc_per_second / 1'000'000'000.0); diff --git a/feely_pona_game.h b/feely_pona_game.h index d8b143a..45ece95 100644 --- a/feely_pona_game.h +++ b/feely_pona_game.h @@ -201,7 +201,7 @@ struct FP_GameCamera Dqn_V2 scale; }; -enum FP_GameAudio +enum FP_GameAudio { FP_GameAudio_TestAudio, FP_GameAudio_TerryHit,