vjodar / gauntlet

OSRS Gauntlet Demake in 2d
3 stars 0 forks source link

Create a damage indicator system #11

Closed vjodar closed 2 years ago

vjodar commented 2 years ago

This system can be based off of the existing dialog system, in that it can be attached to any entity, and will give the player information about combat (damage, health, blocking, etc.) in the form of text. Instead of the text being just above the entity's sprite, it can probably pop up anywhere around the entity.

Also should implement some UI system that will handle drawing the text for both this system and the dialog system (currently, dialog is just drawn in the playState).

vjodar commented 2 years ago

As of commit #93: "Enemies now have functional healthbars", a UI system has been implemented which is designed to draw all ui elements above all other game elements except for the HUD.

vjodar commented 2 years ago

Canning the idea of a damage indicator for now, as I don't feel it's all that necessary to know the exact damage numbers the player is dealing. Rather, the amount of attacks a weapon takes to kill an enemy is what's important, and I feel like that information is already given by the enemy healthbars. Will re-open later if I change my mind.