aboutsummaryrefslogtreecommitdiff
path: root/go/client/game.go
Commit message (Collapse)AuthorAgeFilesLines
* support action targeting from the stack bufferFlorian Fischer2025-09-081-14/+23
|
* center cancel buttonFlorian Fischer2025-09-031-1/+1
|
* show all store available store cards when prompting to buy a cardFlorian Fischer2025-09-031-32/+55
|
* show number of cards in PoCs on their buttonsFlorian Fischer2025-08-261-20/+37
|
* fix target selection promptFlorian Fischer2025-08-261-1/+6
| | | | | Only allow to progress to the next target if the current one does not require further selection.
* add game and settings menusFlorian Fischer2025-08-201-4/+15
|
* reduce message window transparencyFlorian Fischer2025-08-201-2/+2
|
* add simlpe plain text log handler and consider loglevel from the envFlorian Fischer2025-08-201-3/+5
|
* add discard2 icon and button to trigger the free actionFlorian Fischer2025-08-201-0/+18
|
* only show permActionPrompt if the stack is emptyFlorian Fischer2025-08-201-2/+3
|
* add message support to the game clientFlorian Fischer2025-08-201-8/+42
|
* rework hover detectionFlorian Fischer2025-08-201-4/+8
|
* remove choice if it was not selectedFlorian Fischer2025-08-201-0/+3
|
* make formatFlorian Fischer2025-08-201-1/+0
|
* use any instead of interface{}Florian Fischer2025-08-201-5/+5
|
* add random challange aupport to the clientFlorian Fischer2025-08-201-2/+6
|
* show the winner after the game is doneFlorian Fischer2025-08-201-2/+30
|
* present reset button on top of promptFlorian Fischer2025-08-201-3/+6
|
* prompt for all targets that allow a selectionFlorian Fischer2025-08-201-1/+1
|
* hide the store after declaring the buy actionFlorian Fischer2025-08-201-1/+10
|
* remove player color from game codeFlorian Fischer2025-08-201-2/+1
|
* refactor playerControlFlorian Fischer2025-08-201-3/+9
| | | | | | | Allow to propagate errors in order to handle them acordingly. Use playerNotifications by value to reduce the amount of allocations. Add session managment playerNotifications. Support marshalling notifications to plain text.
* rework the client's input handlingFlorian Fischer2025-08-201-9/+25
|
* improve prompt cancellationFlorian Fischer2025-08-201-9/+23
| | | | | | | | The cancel button was overlaying the submit button preventing the submission of a prompt. Distinguish between cancelable and mandatory prompt. Only^ allow cancelable prompts to be removed. Fixes: 37acd982
* add touch friendly way to cancel the current promptFlorian Fischer2025-08-201-9/+23
|
* support touch input as selectionFlorian Fischer2025-08-201-4/+9
|
* define global player colorsFlorian Fischer2025-08-201-1/+1
|
* improve and fix slow action timing checkFlorian Fischer2025-08-201-0/+4
| | | | | Do not allow to declare slow play actions in the client. Fix the slow action check in the game state.
* introduce game.State interface abstractionFlorian Fischer2025-08-201-27/+20
| | | | | This allows to not use the internal game state directly from client code.
* support choosing a value for X when playing cards with variadic costsFlorian Fischer2025-08-201-9/+27
|
* check if Targets allow a selectionFlorian Fischer2025-08-201-1/+1
| | | | This fixes highlighting when an action needs no targets at all.
* client: start trigger implementationFlorian Fischer2025-08-201-0/+14
|
* client: make key bindings dynamicFlorian Fischer2025-08-201-32/+12
|
* remove duplicate selectedObject assignmentsFlorian Fischer2025-08-201-2/+0
| | | | | The selected obj is assigned when creating an action choice therefore it is not necessary to assign it additionally beforehand.
* client: remove active prompt or choice before adding a new oneFlorian Fischer2025-08-201-6/+12
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-08-201-1/+1
|
* prompt for selection if the targets allow selectionsFlorian Fischer2025-08-201-1/+2
|
* ui: separate selection and options via their highlight colorFlorian Fischer2025-08-201-11/+12
|
* intermediate commitFlorian Fischer2025-08-201-2/+12
| | | | | | | | | | | * Implement move artifact action * Fix widget update memory leak * update the highlights not during on each frame * do not update the unchanged label of a button * Allow to exit the game by pressing 'q' * Implement some cards from the magic set * Improve permanent formatting * Some tweaks to UnitAI code
* intermeditae commitFlorian Fischer2025-08-201-1/+0
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* run screen updates after handling user inputFlorian Fischer2025-08-201-4/+8
| | | | | The reordering of the update logic hopefully results in a more responsive UX.
* allow to exit any prompt on escFlorian Fischer2025-08-201-1/+5
|
* do not draw the pass button multiple timesFlorian Fischer2025-08-201-1/+3
|
* implement equip actionFlorian Fischer2025-08-201-7/+46
|
* use prompt for target selection of all actionsFlorian Fischer2025-08-201-59/+114
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-10/+5
| | | | | | | | | | Simplify the Choice Widget and make it a TextBox variant. Drive-by fixes: * ui.Collection: prioritize newer widgets during active widget selection * game.FullAction: fix incorrect cost function. Full actions cost all available actions. Also fix the cost check
* move more ui logic into CollectionFlorian Fischer2025-08-201-174/+54
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* client: use only the currently available actions in the action choiceFlorian Fischer2025-08-201-2/+2
|
* replace Fatalf with PanicfFlorian Fischer2025-08-201-2/+2
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix NPE when adding the wrong widgetFlorian Fischer2025-08-201-1/+1
|