Implement a simple combat system and killing off enemies. See status for next steps.
This commit is contained in:
parent
62562faad3
commit
4162287841
4 changed files with 30 additions and 15 deletions
1
gui.cpp
1
gui.cpp
|
@ -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'☺') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue