refactor(player): clean code => Lightweight

This commit is contained in:
2024-01-09 14:15:17 +01:00
parent 9b0a7a78bb
commit 8d542b6484
6 changed files with 33 additions and 31 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "Shield.h"
Shield::Shield() {
_shield = RectangleShape(Vector2f(30, 20));
_shield.setFillColor(Color(52, 252, 5));
}
void Shield::decreaseLife()
{
_life -= 1;
}