Add grid tutorial text

This commit is contained in:
Nikita Lisitsa 2024-08-20 19:28:44 +03:00
parent 31939f7032
commit a4b1319ea8

View file

@ -1619,6 +1619,12 @@ namespace gmtk
{
bool built = place_card(map_, *active_card_, *selected_);
if (built && tutorial_state_ <= 3)
tutorial_state_ = 4;
if (built && active_card_ == card_type::zoomer && tutorial_state_ <= 5)
tutorial_state_ = 6;
if (built)
{
active_card_ = std::nullopt;
@ -1631,9 +1637,6 @@ namespace gmtk
map_.world->detach<occupied>(e);
}
}
if (built && tutorial_state_ <= 3)
tutorial_state_ = 4;
}
}
}
@ -2479,6 +2482,11 @@ namespace gmtk
helper_text.push_back(" remove clogging");
}
else if (tutorial_state_ == 5)
{
helper_text.push_back("Need more space?");
helper_text.push_back("Try adding a grid!");
}
else if (tutorial_state_ == 6)
{
helper_text.push_back("Let's see how far you can get.");
helper_text.push_back(" Good luck!");