Making up the great Rail, was the telling. First you serve as labor. Then you serve as parts.
trying to figure out how to represent UI actions and I think it's gotta be some kind of gesture based thing
like I need to have balatro and slay the spire as presets probably
anyone have any other card-based game UIs they're a fan of that don't use balatro or slay the spire gestures?
so the gestures I'm thinking of are:
- click on button
- click on card
- after clicking on card, click on different card
- after clicking on card, click between two cards
- drag-and-drop-card which acts as click on card plus after clicking on card click somewhere else
- after clicking on card, click on button attached to card
are there any I'm missing?
I guess click on static target after clicking on card is another one
UI for hovering/focusing a card/button is probably important
gestures (event callbacks)
gamepad/keys
click on button
click on card
hover button
hover card
start dragging card
click after clicking card or drop after dragging:
another card
between cards
static screen region
anything I'm missing?
please someone give me any kind of feedback at all
hmm if I swap out static screen region for button that simplifies that
and then if I add the ability to click between cards without a card clicked first that also simplifies
actions:
gamepad/keys (d-pad, face buttons, start/select, bumpers; no target)
timer elapsed (no target)
click
hover
drag (counts as click at start and click at end)
targets:
button
card
between cards
so now we've got this
further than I've ever gotten on this, about 1/3 of the API designed by my estimation
need to figure out how to handle undoing a choice
maybe that's just a setting like "can the player drag between cards" and then if the game mode says yes it's the game mode's responsibility to apply the old state
I think my only remaining blocker is "what is a button, really"
although... none of the built-in game modes use buttons in their hypothetical CHOICE script
so I could just add an ADD_BUTTON function that throws and worry about that later
I guess it's time to use the Sebastian Lague Method and write a script that uses an API that doesn't exist yet
there's no way I can get Spy Cards Online 0.4 playable before Tau :(