projects
/
TDDC76_proj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f28f414
)
Added point scaling
author
stian853
<stian853@su15-112.ad.liu.se>
Mon, 4 Dec 2023 08:33:29 +0000
(09:33 +0100)
committer
stian853
<stian853@su15-112.ad.liu.se>
Mon, 4 Dec 2023 08:33:29 +0000
(09:33 +0100)
src/States.cc
patch
|
blob
|
history
diff --git
a/src/States.cc
b/src/States.cc
index 3b84a1adedf57bdec1df7a4b9642e86d240ad240..fdfd535f35fcc914083bc41f2c67a6cc900e3192 100644
(file)
--- 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);