From: stian853 Date: Mon, 4 Dec 2023 08:33:29 +0000 (+0100) Subject: Added point scaling X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=bafcb48f37e7e6d23d34288c791b4f660cf642a4;p=TDDC76_proj.git Added point scaling --- diff --git a/src/States.cc b/src/States.cc index 3b84a1a..fdfd535 100644 --- a/src/States.cc +++ b/src/States.cc @@ -121,7 +121,7 @@ void Game_state::update(Context &context) if (player->collides(*helper)) { - points += player->get_collected(); + points += player->get_collected() + floor(player->get_collected() / 3.0f); player->zero_collected(); player->collision(*helper);