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

Participants choose action: 5pts #237

Open
skleinfeldt opened this issue May 1, 2023 · 4 comments
Open

Participants choose action: 5pts #237

skleinfeldt opened this issue May 1, 2023 · 4 comments
Assignees

Comments

@skleinfeldt
Copy link

skleinfeldt commented May 1, 2023

User story:

As a participant, I can choose the action button or the consume button or neither. If a transition is initiated, the outcome state will be reflected in the UI. If the object is consumed, the appropriate number of points is credited to the player.

@jessesnyder jessesnyder changed the title Participants choose action Participants choose action: 5pts May 3, 2023
@alecpm
Copy link
Contributor

alecpm commented Aug 2, 2023

I've implemented this in PR #253. Right now consume and transition use the same key (space), but they could be easily separated if there's a reason to do so. Right now consumption is executed if there's no available transition and the currently held item has a value for calories. There is also a drop action triggered by the d key.

@alecpm
Copy link
Contributor

alecpm commented Aug 2, 2023

I guess we could have another action key (e.g. c) for consuming the item on the current map square without picking it up. Perhaps it would consume that item even when you are holding another item? Would it also consume the item you're holding if you're on a square without a consumable item (similar to space)? @nataliavelez is that what you were thinking?

@nataliavelez
Copy link

nataliavelez commented Aug 2, 2023 via email

@alecpm
Copy link
Contributor

alecpm commented Aug 2, 2023

@nataliavelez In that case, is there a need for a separate consume key? Right now the rules for the action key (spacebar) are, in order:

  1. If neither the square nor the player has an object use the original "plant food" action from Grid Universe (this is kind of dumb and we could replace it with a null -> null transition, but it's there of backwards compatibility for now).
  2. If there's an available transition between the items in hand and in the square, execute it.
  3. If the item in hand has calories, consume one of its remaining uses.
  4. If there's no item in hand and there's a portable item on the ground, pick it up.

There's a second key (d) that can be used to drop an object when on an empty square, and we could change 3 to do a drop instead of consume, and make a separate consume key that consumes regardless of the availability of transitions. Having a separate key for dropping items seemed more intuitive to me, but I can see the case for a separate consume key instead.

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

No branches or pull requests

4 participants