Skip to content

Commit

Permalink
more menu isolation, new multiplier numbers
Browse files Browse the repository at this point in the history
831 lines now! 3k lines gone!!!!! woo hoo
  • Loading branch information
3drosalia committed Nov 18, 2024
1 parent 72ae742 commit a47d09a
Show file tree
Hide file tree
Showing 11 changed files with 1,224 additions and 1,178 deletions.
Binary file added Encore/Assets/ui/Frame 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Encore/Assets/ui/mult_number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 14 additions & 5 deletions Encore/src/gameplay/gameplayRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ void gameplayRenderer::LoadGameplayAssets() {

GameplayRenderTexture = LoadRenderTexture(GetScreenWidth(), GetScreenHeight());


sustainPlane = GenMeshPlane(0.8f, 1.0f, 1, 1);
soloPlane = GenMeshPlane(1.0f, 1.0f, 1, 1);
Image invSolo = LoadImageFromTexture(gprAssets.soloTexture);
Expand Down Expand Up @@ -1161,16 +1162,21 @@ void gameplayRenderer::RenderHud(Player *player, float length) {
SetShaderValueTexture(
gprAssets.FullComboIndicator, gprAssets.TopTextureLoc, gprAssets.MultFCTex2
);
DrawModel(gprAssets.MultInnerDot, Vector3 { 0, 0.0f, 1.1f }, 1.1, WHITE);
DrawModel(gprAssets.MultFill, Vector3 { 0, 0.0f, 1.1f }, 1.1, WHITE);
DrawModel(gprAssets.MultOuterFrame, Vector3 { 0, 0.0f, 1.1f }, 1.1, WHITE);

// DrawModel(gprAssets.MultInnerDot, Vector3 { 0, 0.0f, 1.1f }, 1.1, WHITE);
DrawModel(gprAssets.MultFill, Vector3 { 0, 0.0f, 1.1f }, 1.0, WHITE);
DrawModel(gprAssets.MultOuterFrame, Vector3 { 0, 0.0f, 1.1f }, 1.0, WHITE);
DrawModel(
gprAssets.MultInnerFrame,
Vector3 { 0, 0.0f, 1.1f },
1.1,
1.0,
ColorBrightness(player->AccentColor, -0.4)
);

DrawModelEx(gprAssets.multNumber,
Vector3 { 0, 0.0f, 1.075f },
{0},0,
{1.0, 1.15, 1.15},
WHITE);
DrawRenderTexture();
}

Expand All @@ -1192,6 +1198,9 @@ void gameplayRenderer::RenderGameplay(Player *player, double curSongTime, Song s
// 1) : (!player->stats->Multiplayer ? ((float)(player->stats->multiplier() / 2) - 1)
// / (float)player->stats->maxMultForMeter() : (float)(player->stats->multiplier() -
// 1)));
SetShaderValue(gprAssets.multNumberShader, gprAssets.uvOffsetXLoc, &player->stats->uvOffsetX, SHADER_UNIFORM_FLOAT);
SetShaderValue(gprAssets.multNumberShader, gprAssets.uvOffsetYLoc, &player->stats->uvOffsetY, SHADER_UNIFORM_FLOAT);

float multFill =
(!player->stats->Overdrive ? (float)(player->stats->multiplier() - 1)
: ((float)(player->stats->multiplier() / 2) - 1))
Expand Down
Loading

0 comments on commit a47d09a

Please sign in to comment.