gamedev
Added a basic HUD. It's just text right now, but I plan on replacing the HP text with an actual health bar.
Right now, I"m suffering from writer's block on enemy design because I can't come up with new enemy ideas. Maybe I should replay Kid Icarus for inspiration, but I don't want this to be a straight up clone of the game. I always try to come up with at least something different.
gamedev
Got the enemy to attack when the player is at most, 4 tiles away from the player and is facing the player. Though admittedly, it should be lower. I was just testing the conditions and I will lower the range to make it more reasonable.
I also got the hitbox to change size during the attack, but that's not demonstrated in this recording.
gamedev
Added a UI bar at the bottom which displays the current tile. I also added a yellow outlined rectangle which represents the area that is actually seen in game. Since the player can walk to one side and appear at the other, I have to include tiles that appear offscreen, so naturally the editor window is larger than the actual game window. This outline shows what will actually be visible.
gamedev
Editor now supports all current object. You may notice a bug in this recording after saving with the fourth enemy being in a lower y coordinate after reloading the file. That's due to the fact that this particular enemy is larger than the game's tile size. I'm working on this issue right now.
gamedev
@xianc78 looking good!
gamedev
gamedev
Enemies now randomly drop hearts on defeat.
#gamedev #SFML