Skip to content

[Refactoring] 캐릭터 움직임 동기화 #147

@sententi-a

Description

@sententi-a

현재 브라우저 <-> 브라우저 및 PC <-> PC 간 캐릭터의 움직임 속도가 확연히 다름
이는 Phaser의 update() method가 1초에 불리는 횟수가 환경마다 다르기 때문이라고 추측됨
환경마다 달라질 수 있는 'frameRate' 대신 모든 환경에서 동일한 단위인 '시간'을 기준으로 캐릭터 움직임을 동기화하고자 함

  • 클라이언트 및 서버 시간 동기화
  • 클라이언트들의 movement 이벤트 emit 시간 통일
  • 추측항법 사용해 (Math.Linear)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions