Skip to content

Make Grapple action a bit more generic#2102

Draft
manuq wants to merge 4 commits intomainfrom
more-grapple
Draft

Make Grapple action a bit more generic#2102
manuq wants to merge 4 commits intomainfrom
more-grapple

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Apr 2, 2026

Similar to #2088

manuq added 4 commits April 2, 2026 17:51
Use a 3 seconds timeout to resume aiming with keyboard. This also happens to be
the amount of seconds we keep the mouse cursor on screen in the MouseManager.

This fixes an error in which the mouse and keyboard are competing for the aiming
direction, making the grappling hook very hard to use. Credits for this feedback
goes to Heather Drolet who complained about this in a playtest.
For hiding the mouse. The timer is already configured to wait 3 seconds.
When the grappling hook starts pulling the string, check if the hooked entity
has a got_hooked handler method and if so: 1. call it. And 2. connect to its
area hook_released signal (also added in this commit). Pass the hooked direction
(the direction between the first 2 points of the thread line) to the handler.

With this, custom objects can react differently to the grappling hook pull and
also release themselves at any time.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/more-grapple/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant