Created a combat system to start with and also added a 'HEARING' mechanic where enemies can hear you from a certain distance before moving to you.

This commit is contained in:
Zed A. Shaw 2024-10-27 18:44:54 -04:00
parent 753bc70b77
commit 9102bdc8ad
9 changed files with 70 additions and 24 deletions

11
combat.hpp Normal file
View file

@ -0,0 +1,11 @@
#pragma once
#include "components.hpp"
struct Combat {
int hp;
int damage;
bool dead;
int fight(Combat &target);
};