-
Notifications
You must be signed in to change notification settings - Fork 9
bug fix - making player invulnerable as soon as he spawns #18
Conversation
@j-tesla so what I have done is tracked when the player spawns. And 1 second after he spawns, he will be flickering to indicate he is invulnerable and during this time he will not take any damage either! Please let me know if this approach is fine with you, also let me know if the invulnerable time has to be changed. |
@desai10 that's almost perfect. One small doubt about the flickering effect implementation: You moved the ship below the screen to hide it in the flickering right? When I shoot when the ship is below the screen the bullets spawn below the screen. I suggest that we make change in the shoot method of the the Player class: Instead of spawning at Also it looks better if we lower the flickering frequency and increase the invulnerability time at least 2 seconds. |
Yaa sure, makes sense! I'll add a commit to address these things now. |
@j-tesla I added a commit to address those 2 items (flicker interval and bullet spawn position). Please have a look and let me know if this is fine. |
@desai10 What I meant about lowering flickering frequency is making it look more like blinking, like in all games. Rest of the changes are perfect. |
Sorry, I don't think I understand... So you want the player to fade in and fade out? |
@desai10 you didn't get me. 😅 I'll just make a commit. |
Decrease the flickering rate Signed-off-by: Jayanth PSY <58279279+j-tesla@users.noreply.github.com>
ohh sorry! |
This PR fixes #15