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

Generalize question concept #1

Open
SilasBerger opened this issue Jan 11, 2024 · 0 comments
Open

Generalize question concept #1

SilasBerger opened this issue Jan 11, 2024 · 0 comments
Labels
feature Add or improve business functionality v1 This issue should be fixed for v1

Comments

@SilasBerger
Copy link
Owner

Currently, a question simply loops until it receives the correct answer, then continues with the next beat.
In a more general concept, a question could simply be a function, which maps a given input to

  • any of x possible next dialog branches ("Would you like a tougher challenge?" -> yes-path / no-path)
    • Since game definitions are pure TS files, each path can be stored in a variable, which should make merging easy
  • a response + loopback (as we currently do on wrong answer)
  • any side effect (backend request, capturing an artefact (see below), etc.)
  • any combination of the above
@SilasBerger SilasBerger added feature Add or improve business functionality v1 This issue should be fixed for v1 labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add or improve business functionality v1 This issue should be fixed for v1
Projects
None yet
Development

No branches or pull requests

1 participant