feature/music #48

Merged
Martin merged 5 commits from feature/music into develop 2022-09-01 23:25:14 -04:00
Showing only changes of commit 2c5d3d9afe - Show all commits

View File

@ -30,10 +30,14 @@ void alai::CoinCounter::_ready()
event->connect("coin_collected", this, "_on_coin_collected");
}
void alai::CoinCounter::_on_coin_collected(int amount)
{
coins = coins + amount;
if (coins >= 100)
{
auto extra = coins - 100;
coins = extra;
}
godot::String coin_string = godot::String();
if (coins <= 9)
{