wooseokyourself / shmup

OpenGL based game
MIT License
0 stars 0 forks source link

assn2 - Refactoring #10

Closed wooseokyourself closed 3 years ago

wooseokyourself commented 3 years ago

There are prerequisites - #9

wooseokyourself commented 3 years ago
  1. 모든 도형들 생성자에서 x, y, width, height 등의 애트리뷰트 초기화하는 부분 없애고 setXXX 메소드를 이용해서 애트리뷰트 초기화하도록 수정
  2. 총알, 아이템 등 일정한 방향으로 떠다니다 사라지는 물체를 위한 ThirdObject 클래스를 생성하고 Bullet과 Item 클래스가 이를 상속하여 구현되도록 수정
  3. ThirdObject 를 관리하는 ThirdObjectManager 클래스 생성, 기존의 BulletManager 를 이로 대체
  4. 적을 죽일 시 아이템 등장