reedlaw / ruby-mmo

Ruby MMO: massively multiplayer online programming challenge
274 stars 102 forks source link

Inform players about moves of others #15

Closed izidormatusov closed 10 years ago

izidormatusov commented 12 years ago

Give a message to every player about moves of other players: a player can then join the raid on a single player or know that somebody attacks him and he should defend himself..

reedlaw commented 12 years ago

Good suggestion. One challenge is to get all the moves to be executed simultaneously. Right now the players are added in whatever order Dir["#{dir}/*.rb"] loads files. So whoever's added first has a better chance of getting the kills.

izidormatusov commented 12 years ago

Moves could be grouped by the target. Damage from all players sum up, "attack the player together" and share experiences. If a player has only 10 HP and 3 Players decide to kill him, each one gets only 1/3 of experiences.

Information about move of others would provide useful information although the moves are executed simultaneously. Who attacks you once will attack you the second time probably too.