Add grid tutorial text
This commit is contained in:
parent
31939f7032
commit
a4b1319ea8
1 changed files with 11 additions and 3 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue