dev-jjjjjeong-bin / Invaders-SDP

3 stars 15 forks source link

[BUG] LEVEL 4 Immortality Bug #73

Closed suhynnoh closed 3 days ago

suhynnoh commented 1 week ago

Problem Description

In LEVEL 4, the player's health drops below 0, but the game does not trigger the "Game Over" screen as expected. This bug allows the player to continue playing despite having no remaining health, breaking the intended game mechanics. This issue has been confirmed only in LEVEL 4, while there were no problems in LEVEL 1, 2, 3, and Boss levels. However, LEVEL 5, 6, 7 have not yet been tested for this issue.

Todo List

Feature Description

https://github.com/user-attachments/assets/b536a245-d3ae-4bb9-b13c-831804324bd2

Additional Information

The issue seems isolated to LEVEL 4 at the moment. However, further testing in LEVEL 5, 6, and 7 is necessary to determine if the bug exists in those levels as well.

DongWonLee2 commented 1 week ago

There seems to be a problem with the actionPerformed message in the EnemyShipFormation file. When using the index of the list in the method, it is necessary to ensure that it does not deviate from the valid range (from 0 to the length of the list - 1).

Dream-no24 commented 5 days ago

Could you explain how the list index issue in the actionPerformed method is related to the bug where the game doesn't end when the player's health reaches zero? I will make the modification for stability, but I don't fully understand the connection.

Dream-no24 commented 5 days ago

Also, when I checked, I found that the same problem appeared in level 5 and 6.

스크린샷 2024-10-16 오후 10 16 45
DongWonLee2 commented 2 days ago

Could you explain how the list index issue in the actionPerformed method is related to the bug where the game doesn't end when the player's health reaches zero? I will make the modification for stability, but I don't fully understand the connection.

I'm sorry, there was a mistake. I was talking about this after seeing a message from another bug.