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

공격에 대한 기능 정의 #13

Open
todd032 opened this issue Jun 18, 2015 · 0 comments
Open

공격에 대한 기능 정의 #13

todd032 opened this issue Jun 18, 2015 · 0 comments
Assignees

Comments

@todd032
Copy link
Collaborator

todd032 commented Jun 18, 2015

특정 오브젝트(플레이어, 적, 보스 등등)가 [공격] 이라는 행동을 취하면 공격 오브젝트를 생성한다.

공격 오브젝트는 충돌한 다른 오브젝트에 대해 피격 판정을 실시한다.

공격 오브젝트는 생성될 떄 다음과 같은 정보들을 가지고 생성된다.
공격 오브젝트가 가지는 정보들

  1. 오브젝트 생성자 id - 해당 공격 오브젝트를 생성한 오브젝트에 대한 id
  2. 타격 대상 그룹 id들 - 해당 공격에 타격 될 그룹 id
  3. 타격 대상 제외 id들 - 해당 공격에 타격되지 않을 개별 오브젝트 id
  4. 생성 위치 - 해당 공격 오브젝트가 생성되는 위치
  5. 타격 지속 frame - 해당 공격이 지속되는 공격이라면, 몇 frame간 지속되는지 결정하는 요소
  6. 방향 vector - 이동하는 공격 오브젝트라면, 속도에 대한 vector
  7. 가속도 vector - 가속도에 대한 vector
  8. 시작 vector - 시작 속도
  9. 이동저항력 - 이동 저항력
  10. frame 당 데미지 - frame마다 들어가는 데미지
  11. 타격 대상에게 가해질 힘 vector - 타격되는 오브젝트에 가해질 물리적인 힘.

공격 오브젝트에 피격된 오브젝트는 frame당 데미지, 가해지는 힘에대한 처리를 자체적으로 한다.

추후 다른 특성들 가령 중독량과 같은 것들이 추가 될 수 도 있다.

이 정보에 대한 데이터는 json 형태로 관리하는 것을 추천

@todd032 todd032 added this to the 플레이어 행동 구현 milestone Jun 18, 2015
@todd032 todd032 removed this from the 플레이어 행동 구현 milestone Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants