Added point scaling
authorstian853 <stian853@su15-112.ad.liu.se>
Mon, 4 Dec 2023 08:33:29 +0000 (09:33 +0100)
committerstian853 <stian853@su15-112.ad.liu.se>
Mon, 4 Dec 2023 08:33:29 +0000 (09:33 +0100)
src/States.cc

index 3b84a1adedf57bdec1df7a4b9642e86d240ad240..fdfd535f35fcc914083bc41f2c67a6cc900e3192 100644 (file)
@@ -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);