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

클라이언트 - 농구 게임 구현 #98

Open
ahnjinmo opened this issue Feb 3, 2022 · 4 comments · May be fixed by #110
Open

클라이언트 - 농구 게임 구현 #98

ahnjinmo opened this issue Feb 3, 2022 · 4 comments · May be fixed by #110
Assignees
Labels
클라이언트팀 클라이언트팀 업무

Comments

@ahnjinmo
Copy link
Collaborator

ahnjinmo commented Feb 3, 2022

목적

  • 농구 게임 구현
@ahnjinmo ahnjinmo added the 클라이언트팀 클라이언트팀 업무 label Feb 3, 2022
@ahnjinmo
Copy link
Collaborator Author

ahnjinmo commented Feb 7, 2022

  • 기본적인 농구 게임 시스템을 구현했습니다.
  • 시작 시 Enter 버튼을 누르면 30초 카운트다운시 시작되고, 화면을 클릭하면 공이 스폰됩니다. 그 후 공을 드래그 하면 슛이 가능합니다.
  • Basketball 씬에서 확인하실 수 있습니다.
2022-02-07.18-26-40.mp4

@brainini
Copy link
Collaborator

brainini commented Feb 8, 2022

진짜 이 농구게임은... 너무 멋있네요

@ahnjinmo
Copy link
Collaborator Author

ahnjinmo commented Feb 8, 2022

GameState 분류

  • GameReady : 게임 시작 전
    • 아직 농구게임을 시작하지 않은 단계. PlayButton을 누를 때까지 이 단계에 있음.
    • PlayButton을 누르면 게임이 시작되고, 라운드 준비 단계로 이동함.
    • ScoreDisplay가 0으로 초기화됨.
  • RoundWaiting : 라운드 준비 단계
    • 라운드가 진행되기 전의 단계. 라운드가 시작되기 전에 3 2 1 카운트다운을 하는 단계.
    • RoundText와 LeftTimeDisplay가 초기화됨.
    • 농구공의 스폰이 막혀있음.
    • 생성된 농구공을 모두 제거함.
  • RoundOngoing : 라운드 진행 단계
    • 농구공을 던지며 실제 플레이할 수 있는 단계. LeftTime이 0이 되기 전까지 이 단계에 있음.
    • Timer와 LeftTimeDisplay가 작동되기 시작함.
    • 농구공을 스폰할 수 있게 됨.
  • RoundFinished : 라운드 종료 단계
    • 라운드가 종료되고 해당 라운드를 마무리하는 단계. LeftTime이 0이 되면 이 단계로 옴.
    • Time's Up 혹은 Round x Finished같은 text를 보여줌.
    • ~초 뒤에 이 단계는 자동으로 끝남.
    • 최종 라운드가 아닐 때에는 다시 라운드 준비 단계로 넘어감.
    • 최종 라운드가 종료되었을 때는 게임 종료 단계로 넘어감.
  • GameFinished : 게임 종료 단계
    • 게임이 모두 종료되고 마무리하는 단계
    • 최종 점수를 띄움.
    • ~초 뒤에 이 단계는 자동으로 끝남.
    • 이 단계가 끝나면 게임 시작 전 단계로 넘어감.

@ahnjinmo
Copy link
Collaborator Author

ahnjinmo commented Feb 9, 2022

게임 방법

  • Basketball 씬에 들어간다.
  • Play 버튼을 누르면 게임이 시작된다.
  • 게임은 총 4라운드이며, 각 라운드 마다 30초가 주어진다.
  • 3초 후에 라운드가 시작되며, 라운드가 시작되면 마우스 클릭을 통해 공을 생성할 수 있다.
  • 생성된 공을 마우스로 드래그하여 슛을 할 수 있다.
  • 4라운드까지 종료되면 최종 스코어가 띄워지고 3초 뒤 게임이 종료된다.

추가 구현 내용 정리

  • 라운드 시스템 추가 (총 4라운드로 구성)
  • 공 넣었을 때 효과음 및 파티클 추가
  • 게임 시작 및 안내를 위한 UI 추가
01_3.mp4

@ahnjinmo ahnjinmo linked a pull request Feb 9, 2022 that will close this issue
@ahnjinmo ahnjinmo linked a pull request Feb 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
클라이언트팀 클라이언트팀 업무
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants