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

General script for all levels so that game ends early when player is infected #95

Closed
maccxs opened this issue May 2, 2020 · 5 comments · Fixed by #110
Closed

General script for all levels so that game ends early when player is infected #95

maccxs opened this issue May 2, 2020 · 5 comments · Fixed by #110
Assignees

Comments

@maccxs
Copy link
Contributor

maccxs commented May 2, 2020

No description provided.

@maccxs maccxs changed the title Make disco level end early when player is infected General script for all levels so that game ends early when player is infected May 4, 2020
@maccxs
Copy link
Contributor Author

maccxs commented May 4, 2020

My idea is that the game pauses when the player is infected. Then a text appears which tells the user to continue with 'c' or retry with 'r'. This should be kept general so that it can be applied without further ado to all levels where we need it.

@holke
Copy link
Contributor

holke commented May 4, 2020

The end condition can easily be implemented in EndLevelControllerBase, each EndLevelCotroller that inherits can the decide whether or not to apply it.

With 'continue' do you mean: Continue this level as an infected human and see what happens, or continue to the next level?

@maccxs
Copy link
Contributor Author

maccxs commented May 4, 2020 via email

@holke
Copy link
Contributor

holke commented May 4, 2020

Yes, thats the better option.
This fits into my plans for #87 and could be developed in conjunction with it.
A GameManager that knows the order of levels/scenes and in which scene we are currently in.
So that the levels do not have to care about what level comes next.
This game manager can then also call your new menu and give control back to the level or restart it.

@maccxs
Copy link
Contributor Author

maccxs commented May 4, 2020

That sounds like a plan.

@maccxs maccxs self-assigned this May 16, 2020
@maccxs maccxs linked a pull request May 17, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants