survivor

graphical action game for the linux terminal
git clone https://git.ce9e.org/survivor.git

commit
037fe394d682d653c092295ab274634d144f5e59
parent
29dfbf1b86f163354bb6310a8b4dad63b5c224c4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-03-29 06:32
chore: merge Player implementation blocks

Diffstat

M src/game.rs 2 --

1 files changed, 0 insertions, 2 deletions


diff --git a/src/game.rs b/src/game.rs

@@ -84,9 +84,7 @@ impl Player {
   84    84             next_level: 10.0,
   85    85         };
   86    86     }
   87    -1 }
   88    87 
   89    -1 impl Player {
   90    88     pub fn recover(&mut self, dt: f32) {
   91    89         self.health = (self.health + self.health_recover * dt).min(self.health_max);
   92    90     }