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

Boss monster #14

Merged
merged 7 commits into from
Nov 27, 2023
Merged

Boss monster #14

merged 7 commits into from
Nov 27, 2023

Conversation

Ahnjunyoung1110
Copy link
Collaborator

graphics 칸에 보스를 구현하기 위해서 숫자를 넣었음<< 0011어쩌구 추가된것

boss의 HP바를 그리기 위해서 drawBossHp 라는 함수를 추가했음, 인수로 보스의 총 HP와 현재 HP를 받음

보스를 spriteMap.put(SpriteType.Boss, new boolean[448][20]); 으로 추가했음

boss 라는 class를 추가했음 enimyship class를 복사해서 가져왔기 때문에 변경점은 크지 않으나 boss의 hp를 게임단계 *10으로 우선 설정해 두었음

bossCountCheck 라는 boolean 변수를 통해 처음 보스가 나올때 warning 문구가 나올 수 있도록 했음 true면 문구가 나오는중 false면 문구가 안나오는중

bossCheck라는 boolean 변수를 통해 보스의 등장을 확인함 true면 보스등장 false면 보스 미등장 모든 적이 파괴되었을시 true로 변경

checkCollision 이라는 총알의 충돌을 확인하는 함수에서는 if(this.bossCheck&&!bossCountCheck) 문을 통해 보스가 등장했을시 보스와 플레이어 간의 총알 충돌을 확인 할 수 있도록 했음

…e ability to load it.

2.I have added a warning message before the boss appears, and it will be displayed for 4 seconds.
3.After defeating all the monsters, the boss can now appear.
…e ability to load it.

2.I have added a warning message before the boss appears, and it will be displayed for 4 seconds.
3.After defeating all the monsters, the boss can now appear.
…s health.

2. If the boss's health reaches 0, the stage can now end.

3. I implemented interactions between the boss and player bullets.
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
merge item feature to main
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
RELEASE: two-players mode (2023. 10. 11.)
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
feat: BGM now can be played on Gameover Screen(Score Screen)
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
jangseowon03 pushed a commit that referenced this pull request Nov 23, 2023
2. Created danger zones according to the boss's patterns.

3. Enabled bullet firing in accordance with the boss's patterns.
@Ahnjunyoung1110
Copy link
Collaborator Author

drawBossPattern 이라는 함수를 추가했음 받는 출력해야하는 패턴에 따라 그리는 패턴이 달라짐
보스에게 doPattern 이라는 사실상의 update함수를 추가, 보스의 이전 패턴이 끝났는지를 확인후 랜덤적으로 변수를 선언후 패턴을 실행

@yuna0833 yuna0833 merged commit e36c16b into Develop Nov 27, 2023
@Ahnjunyoung1110 Ahnjunyoung1110 deleted the Boss_monster branch November 27, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants