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:
parent
753bc70b77
commit
9102bdc8ad
9 changed files with 70 additions and 24 deletions
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include "dinkyecs.hpp"
|
||||
#include "map.hpp"
|
||||
#include "combat.hpp"
|
||||
#include <deque>
|
||||
|
||||
namespace Components {
|
||||
|
@ -17,11 +18,6 @@ namespace Components {
|
|||
int dy;
|
||||
};
|
||||
|
||||
struct Combat {
|
||||
int hp;
|
||||
int damage;
|
||||
};
|
||||
|
||||
struct Treasure {
|
||||
int amount;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue