Skip to content
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

Pong: Socket.io로 멀티플레이 연결 구현 #77

Closed
devleomk1 opened this issue Feb 16, 2023 · 2 comments · Fixed by #105
Closed

Pong: Socket.io로 멀티플레이 연결 구현 #77

devleomk1 opened this issue Feb 16, 2023 · 2 comments · Fixed by #105
Assignees
Labels
enhancement New feature or request Pong Pong 관련 이슈

Comments

@devleomk1
Copy link
Collaborator

구현 해야할 것

  1. 플레이어 간 1:1 연결
  2. 관전자들(다수)에게 브로드캐스팅

주고 받을 데이터

@devleomk1 devleomk1 added the enhancement New feature or request label Feb 16, 2023
@devleomk1 devleomk1 self-assigned this Feb 16, 2023
@Skyrich2000
Copy link
Collaborator

Skyrich2000 commented Feb 17, 2023

일단 연습용 소켓 통신

보내주실 event

EventName: ping 
Data : { message: string }

받으실 event

EventName : pong
Data: { message: string }
EventName : hello
Data : { nickname: string }

@devleomk1
Copy link
Collaborator Author

Socket 연결을 useHandleSocket.ts을 기반으로 구현현하였으나,
class형식을 사용하는 Phaser 씬 내부에서 사용하기에 코드가 복잡해지는 문제가 생김.

Phaser 내부에서 바로 소켓 연결하는 식으로 바꿀 예정

@devleomk1 devleomk1 linked a pull request Feb 18, 2023 that will close this issue
@devleomk1 devleomk1 added the Pong Pong 관련 이슈 label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Pong Pong 관련 이슈
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants