From 629c9d9b27c5dfcc2d4b95ed9f14f6a3cb8789ea Mon Sep 17 00:00:00 2001 From: Joshalosh Date: Tue, 17 Oct 2023 09:00:04 +1100 Subject: [PATCH] fp: Position and scale billboards --- feely_pona.cpp | 10 +++++----- feely_pona_entity_create.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/feely_pona.cpp b/feely_pona.cpp index b8837f4..fd143f7 100644 --- a/feely_pona.cpp +++ b/feely_pona.cpp @@ -473,11 +473,11 @@ static void FP_PlayReset(FP_Game *game, TELY_Platform *platform) play->tile_size = 37; // NOTE: Create billboads ====================================================================== - FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(1311, -951), FP_EntityBillboardState_Dash, "Dash Billboard"); - FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(1954, 855), FP_EntityBillboardState_Attack, "Attack Billboard"); - FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(2047, -984), FP_EntityBillboardState_RangeAttack, "Range Attack Billboard"); - FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(2036, -700), FP_EntityBillboardState_Monkey, "Monkey Billboard"); - FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(2098, 1171), FP_EntityBillboardState_Strafe, "Strafe Billboard"); + FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2( 511, 451), FP_EntityBillboardState_Dash, "Dash Billboard"); + FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2( 511, -451), FP_EntityBillboardState_Attack, "Attack Billboard"); + FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(2047, -720), FP_EntityBillboardState_RangeAttack, "Range Attack Billboard"); + FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(-936, -500), FP_EntityBillboardState_Monkey, "Monkey Billboard"); + FP_Entity_CreateBillboard(game, Dqn_V2_InitNx2(1898, 771), FP_EntityBillboardState_Strafe, "Strafe Billboard"); // NOTE: Camera ================================================================================ play->camera.world_pos = base_mid_p - Dqn_V2_InitV2I(platform->core.window_size * .5f); diff --git a/feely_pona_entity_create.cpp b/feely_pona_entity_create.cpp index c11e15e..5dd1b94 100644 --- a/feely_pona_entity_create.cpp +++ b/feely_pona_entity_create.cpp @@ -264,7 +264,7 @@ FP_EntityRenderData FP_Entity_GetRenderData(FP_Game *game, FP_EntityType type, u } break; case FP_EntityType_Billboard: { - result.height.meters = 12.f; + result.height.meters = 7.5f; FP_EntityBillboardState state = DQN_CAST(FP_EntityBillboardState)raw_state; switch (state) { case FP_EntityBillboardState_Attack: result.anim_name = g_anim_names.map_billboard_attack; break;