0-9194 / 0-9194/mmorpg-servers

World - Process of attack and casting spells

オープン
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Feature Systems World Server
主要言語
JavaScript
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

- [ ] Attack packet interpreter
- [ ] Send attack success packet to clients + damage
- [ ] Subtract hp from client defender
- [ ] Send attack failed to clients
- [ ] Magic attack packet interpreter
- [ ] Send casting succeeded to clients + damage
- [ ] Subtract mana from client attacker and hp from client defender
- [ ] Send casting fails to clients

Implement the attack and casting spell, with the lag / latency threshold

### Spells
- The client attacker sends a casting spell packet
- The server validates if client has enough resources (mana) to cast, subtract the amount and save it + the casting time
on client server entity
- When casting time is over (calculated by server), send the client attacker the "spell was casted" packet
- If casting fails for whatever reason, respond to client a "spell failed to cast" packet

### Attack
- The client attacker sends a attack packet
- Server calculates if attack hits or misses
- If hit, send the client attacker and client defender the appropriate updates with damage
- If miss, send the client attacker and client defender the miss packet

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

パケット処理コードを探します。おそらくネットワークモジュールまたはサーバーファイル内にあります。この issue は攻撃パケットと呪文パケットについて説明しています。パケットが解釈され、応答が送信される場所を見つけてください。既存のクライアント-サーバープロトコルを理解し、命中/ミスのロジックを計算し、詠唱タイマーを管理し、クライアントの HP/マナを更新する必要があります。テストには、クライアントパケットのシミュレーションと、正しい応答が送信されることの検証が含まれます。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
backend, game-dev, networking
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。