Allow for all-CPU play

This commit is contained in:
Gordon Weeks 2026-01-31 23:08:48 -08:00
parent 4ecf05c098
commit 60a877c793
2 changed files with 5 additions and 24 deletions

View File

@ -225,29 +225,10 @@ public:
draw_slot_label(icon_x_left, cy, SLOT_LEFT);
draw_slot_label(icon_x_right, cy, SLOT_RIGHT);
bool at_least_one_selected = false;
for (int s = 0; s < MAX_INSTRUMENT_TYPES; s++)
{
if (instrument_owner[s] >= 0)
{
at_least_one_selected = true;
break;
}
}
if (at_least_one_selected)
{
const char* prompt = "Press Start to begin";
float font_size = 24.0f;
float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x;
DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE);
}
else
{
const char* prompt = "Select at least one instrument";
float font_size = 24.0f;
float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x;
DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE);
}
const char* prompt = "Press Start to begin";
float font_size = 24.0f;
float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x;
DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE);
}
};

View File

@ -31,7 +31,7 @@ public:
auto height = GetScreenHeight();
auto title_text_size = MeasureTextEx(font, title.c_str(), 64, 0);
std::string subtitle = "Press Start";// or Enter to Play";
std::string subtitle = "Press Start";
auto subtitle_text_size = MeasureTextEx(font, subtitle.c_str(), 32, 0);
ClearBackground(SKYBLUE);