Repository navigation
Swipe to throw, tap to repel - #3080
Merged
Merged
Conversation
|
Play this branch at https://play.threadbare.game/branches/endlessm/swipe-to-throw/. (This launches the game from the start, not directly at the change(s) in this pull request.) |
manuq
force-pushed
the
swipe-to-throw
branch
from
November 11, 2026 14:21
f36b5d9 to
172541e
Compare
manuq
marked this pull request as ready for review
November 11, 2026 14:36
And remove now unused PNG files for touch buttons.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The VirtualJoystick to move the player character was a 200x200 px square. Now it is enlarged and adapts to the screen: it is 40% of the screen width and 60% of the screen height. It is still anchored to the bottom left by default, and to the bottom right with a new "left-handed" input setting.
Remove the TouchScreenButton used to repel / interact. Now tap anywhere else (outside the pause button and virtual joystick) does repel / interact. Before it was used for throwing the grappling hook in the direction from the player character to the tap position.
For aiming and throwing the grappling hook, instead of tap, now the player should swipe (again, outside the pause button and virtual joystick). And the swipe direction is used in the ControlHook to set the angle. This behaves basically as another virtual joystick.
Add input hints for the touch gestures. This makes the touch experience more consistent with the game played with keyboard, mouse, or joypad. And also solves explaining the touch controls. For doing this, import the
touch_sheet_default.pngspritesheet from Kenney Input Promts v1.5 (latest). Change the layout of these from right (default) to left when the new left-handed setting is enabled. Leave repel / interact as the inner input hint, because unlike the aim & throw hint, its size changes as the label is updated.Also add tool buttons for testing the right-handed and left-handed layouts in the editor, in the same way as the balloon.tscn file does it for testing the dialogue at the top or bottom:
Grabacion.de.pantalla.desde.2026-11-11.11-54-44.mp4
Also: add a bit more separation between input hints: from 8 to 16 px. For making this in a single place, add a new HBoxContainer variant named "InputHintsContainer".
Also cleanup: Remove interact type from InteractArea. And remove now unused PNG files for touch buttons.
Update the Spanish translation.
Thanks to @rothiotome for the feedback provided, which allowed me to implement this.
Resolve #3026
Resolve #3024