Implement a simple combat system and killing off enemies. See status for next steps.

This commit is contained in:
Zed A. Shaw 2024-10-26 20:29:55 -04:00
parent 62562faad3
commit 4162287841
4 changed files with 30 additions and 15 deletions

View file

@ -226,6 +226,7 @@ void GUI::draw_screen(bool clear, float map_off_x, float map_off_y) {
// TODO: need to center it inside the bg_sprite
sprite.setPosition({x+width_delta, y+height_delta});
// get the entity combat and make them light gray if dead
if(tile == L'') {
sprite.setColor(sf::Color(80,80,80));
} else if(tile == L'') {