player health
This commit is contained in:
@@ -53,6 +53,10 @@ void PlayerInput(SDL_Event *event, Player *player)
|
||||
void PlayerUpdate(F32 delta, Player *player) {
|
||||
player->controls.shot = false;
|
||||
V2f dir = V2F(0, 0);
|
||||
if(player->health == 0){
|
||||
printf("dead :(");
|
||||
player->health = 3;
|
||||
}
|
||||
if(player->controls.upDown) {
|
||||
dir.y -= 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user