My idea is to divide the score earned in a turn by 100, then add that to the 5 the player automatically gets for placing a shape correctly to determine how much life the player should gain at the end of a successful turn.
Under this system, earning 1200 points in a turn will add 12 bonus points to the life gained at the end of it, culminating in the player gaining 17 life points.
For this enhancement, something like changing modify_life(5); to modify_life(calculate_score()/100 + 5); could be done in main.cpp. I have no idea if that's formatted right, I don't know C++.
My idea is to divide the score earned in a turn by 100, then add that to the 5 the player automatically gets for placing a shape correctly to determine how much life the player should gain at the end of a successful turn.
Under this system, earning 1200 points in a turn will add 12 bonus points to the life gained at the end of it, culminating in the player gaining 17 life points.
For this enhancement, something like changing
modify_life(5);
tomodify_life(calculate_score()/100 + 5);
could be done inmain.cpp
. I have no idea if that's formatted right, I don't know C++.