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

Input Input Reaction Requirement Additional Requirement Parts #150

Open
1 of 2 tasks
azriel91 opened this issue Mar 12, 2020 · 0 comments
Open
1 of 2 tasks

Input Input Reaction Requirement Additional Requirement Parts #150

azriel91 opened this issue Mar 12, 2020 · 0 comments
Labels
F: core Core application functionality - managing resources, state, etcetera.
Milestone

Comments

@azriel91
Copy link
Owner

In GitLab by @azriel91 on Jul 30, 2019, 09:21

Further decrease hard coded input transitions into default configuration.

Two possible models:

  • Repeat while input is some.

    [transitions]
    # { run_counter = "decreasing" }
    press_x = { next = "run", requirement = [{ input = "same" }, { multi_tap = 2 }] }
    hold_x = { next = "run", requirement = [{ input = "same" }] }
    z_axis = { next = "repeat", requirement = [{ input = "some" }] }
  • Go to "stand" when input is none.

    Note: This already exists.

    Doesn't work with separate axes checks when both x and z axes need to be checked.

    Works if the requirements have a "check both x and z axes".
    But also need to cater for "run" when x axis is double tapped.

Most likely use the first model, it decouples checking both x and z axis inputs as requirements, and further allows extension in case we want to implement different walking sequences for the z axis.

Also, perhaps instead of a SequenceId for the ControlTransition, take in a new SequenceTransition type, analogous to SequenceEndTransition, except its effects are immediate (but potentially with a "loop on end" or "continue" variant).

@azriel91 azriel91 added the F: core Core application functionality - managing resources, state, etcetera. label Mar 12, 2020
@azriel91 azriel91 added this to the Backlog milestone Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: core Core application functionality - managing resources, state, etcetera.
Projects
None yet
Development

No branches or pull requests

1 participant