flackr / dungeon

A D&D based multiplayer role playing game.
13 stars 4 forks source link

Show damage dealt during combat. #8

Closed flackr closed 12 years ago

flackr commented 12 years ago

Summary.

We need a better implementation for showing the results of combat. In particular it would be nice to animate the number of hit points taken from each of the monsters targetted in an attack (and eventually include effects like poisoned).

Implementation.

This is a UI change, but could involve changing the format of the message sent to indicate the combat result. Right now there are no usable messages sent on misses if we want to show those and attack-result gives the new hit point value (which could be used to calculate the hit points).

To implement this dungeon-common.js should dispatch a message with the necessary information after an attack. dungeon-client.js would listen for this message and show the relevant UI.

kellis commented 12 years ago

Added 'banner-message' event to dungeon-command and corresponding listener in dungeon-client to show a message at the top of the combat map with a fade-out effect. Hit points of damage and misses are shown, and the message includes the name of the attacker and attackee. Other effects can be indicated as well once supported.