Skip to content

[Fix/client/map] #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2024
Merged

[Fix/client/map] #27

merged 2 commits into from
Dec 2, 2024

Conversation

zero2vec
Copy link
Collaborator

@zero2vec zero2vec commented Dec 2, 2024

🐣Title

[Fix/client/map]


🐣Part

Client


🐣Key Changes

  • map에서 동작하는 positionSyncThread를 없애고, ServerCommunicator를 이용하도록 수정했습니다.
  • 모든 클라이언트의 장애물 생성위치가 같도록 수정했습니다.
  • 대기실 창 크기와 게임 창 크기를 통일시켰습니다.


🐣Simulation

bandicam.2024-12-02.16-45-57-558.mp4


🐣To Reviewer



🐣Next



🐣Issue

  1. 맵에서 클라이언트가 스윙 창을 꺼서 종료해도, 서버에서 해당 유저의 location을 계속 브로드캐스트하는 것 같습니다. 연결이 종료된 순간, "210|sessionID|-1|-1|..."이런식으로 x, y좌표를 특별하게 설정하여 브로드캐스트하여 다른 클라이언트들에게 이 클라이언트를 더 이상 표시하지 말도록 인지시켜야 할 것 같습니다.
  2. 서버에서 클라이언트의 위치를 브로드캐스팅할 때, role도 추가로 보내줘야 할 것 같습니다 (role에 따라 그래픽을 다르게 표시해야 함)
  3. 현재 Feat/Server/implement-interaction 브랜치에 있는 GameContext.java가 가장 최근에 업데이트된 코드로 알고있는데, 몇가지 오류가 발생합니다 (예: playerStates 객체가 없는데 사용중?).


Copy link
Collaborator

@zziglet zziglet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

작업하느라 수고하셨습니다!

@ekgns33 ekgns33 merged commit 8a8bae7 into ekgns33:main Dec 2, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants