feat: particles and new bank
This commit is contained in:
parent
349552674d
commit
60265f3417
220 changed files with 13248 additions and 4917 deletions
|
@ -4,19 +4,22 @@ namespace Presenter {
|
|||
public class ExpressionClick {
|
||||
private readonly Score _score;
|
||||
private readonly IExpressionInput _view;
|
||||
private readonly IRoseGrow _grow;
|
||||
private readonly IRoseSpawner _spawner;
|
||||
|
||||
private bool CanSpawn => _score.Value % (_score.GrowIterations * _score.SpawnRate) == 0;
|
||||
|
||||
public ExpressionClick(Score score, IExpressionInput view, IRoseSpawner spawner) {
|
||||
public ExpressionClick(Score score, IExpressionInput view, IRoseSpawner spawner, IRoseGrow grow) {
|
||||
_score = score;
|
||||
_view = view;
|
||||
_spawner = spawner;
|
||||
_grow = grow;
|
||||
}
|
||||
|
||||
public void Execute() {
|
||||
_score.Add();
|
||||
_view.UpdateView(_score.Value, _score.GrowPercentage);
|
||||
_grow.Grow();
|
||||
|
||||
if (CanSpawn)
|
||||
_spawner.SpawnRose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue