dev-jjjjjeong-bin / Invaders-SDP

3 stars 15 forks source link

[BUG] Bomb destroys ships far away #56

Closed this-yujunkim closed 1 week ago

this-yujunkim commented 1 week ago

[BUG] Bomb destroys ships far away


Summary

Bomb's logic is to destroy ships in their top, bottom, right, and left side. This bug causes bomb to destroy ships far away somehow.

TODO

https://github.com/user-attachments/assets/6ae34a7a-94a4-42b9-8e52-6beeb0af0779

Bomb_Bug_log

eungyu04 commented 1 week ago

The above error occurred by simply accessing the list. We are going to fix the bug by adding the distance calculation formula of the entities in the range(up, down, left, right) of the bomb.

this-yujunkim commented 1 week ago

The above error occurred by simply accessing the list. We are going to fix the bug by adding the distance calculation formula of the entities in the range(up, down, left, right) of the bomb.

Thank you for your reply! I am already excited to see this bug to be fixed. Make sure to close this issue when you send PR. Keep up the good work!

ise-e commented 1 week ago

Bug fix version has been applied