dev-jjjjjeong-bin / Invaders-SDP

3 stars 15 forks source link

Implementation of Player&EnemyShip Variety #110

Closed Dream-no24 closed 3 days ago

Dream-no24 commented 4 days ago

Bug Fixes and Feature: Damage Logic and Stability Improvements

1. FEAT: Change of Damaging When Explosive Mob Dies (#23)

What
There was an error in the existing explosive mob explosion processing method, so I changed it to use Q to process it.

Why
Previously, when a Magenta EnemyShip was destroyed by an explosive mob, the damage calculation was handled in the EnemyShipFormation class rather than in the GameScreen class. This caused an issue where the Magenta Mob didn’t drop items upon destruction. This has now been fixed.

Related Issue
Closes dev-jjjjjeong-bin#54 on TA repo

Additional Information

2. FIX: Stability Improvement in the actionPerformed Method (#22)

What
Added an index check in the first if statement of the actionPerformed method to improve stability.

Why
The absence of an index validation caused potential crashes when handling enemy ship positioning. This fix prevents index out-of-bounds errors and ensures smoother gameplay.

Related Issue
Closes dev-jjjjjeong-bin#73 on TA repo