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

Change the way the mobs are cleared from screen #1164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fsantos98
Copy link

This PR was created because of #10655

I think it makes more sense to free the mobs when it's game over so it's more visual to the person who is learning.

At this point in the tutorial when we die we have a ~2 second window to be able to start the game again. In this time all the mobs on the screen are not visible anymore, so the queue_free action is not too obvious.
It feels better to be able to see what this line of code is doing by removing them immediately when it's game over, this way we can visually see what the code is doing.

Before:
2143d44000dd690a8406b1ac9b6fa0ce

After:
69b004679a44531ae3bd28995287506b

@aaronfranke
Copy link
Member

The existing behavior is better. It lets you see the enemies after death. Deleting everything on game over is jarring, and leaves the player wondering what happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants