flackr / dungeon

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

Implement roll dialog #3

Open flackr opened 12 years ago

flackr commented 12 years ago

Summary

It's fairly nice when doing an attack to see a dialog showing your rolls. We should show rolls in some sort of a dialog so that the user can see that this is still a dice based game.

Implementation

Currently the entire attack is implemented in dungeon-client.js, the attack rolls are made in the attack function and used in attackResult. Given that this is all done client side the implementation doesn't need to involve any server messages and can just compute the attack result and send it through an event.