Skip to content

Hilo abilities - #3131

Draft
manuq wants to merge 6 commits into
mainfrom
hilo-abilities
Draft

manuq wants to merge 6 commits into
mainfrom
hilo-abilities

Conversation

@manuq

@manuq manuq commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

manuq added 6 commits December 1, 2026 11:08
Connect it in _ready() instead of in each projectile scene. All the projectile
scenes did it the same way, and a scene made by copying one could miss it.

This is from prior discussions with Will. The diff here shows that indeed doing
the connection from the Signals tab adds redundancy in this case.
The physics engine applies constant_force on each physics step, so update it
there instead of on each frame. This makes the projectile more reliable on slow
devices, where several physics steps can pass between frames.
Like the walk behaviors do for characters, move the speed toward a
target on each physics step, by a new speed_step: speed, or
hit_speed after being repelled. Keep the direction, which comes from
the bounces and the homing force.

Projectiles no longer lose speed to the default linear damping over
their life, and homing projectiles no longer speed up while they
turn toward their target. They turn at a steady speed instead, which
makes them easier to read and to repel.
So the projectile goes in the exact direction it was repelled, and
the player can aim it. Remove the homing force too, since it stays
applied until changed.
To be used by a new player ability that slows down the projectiles
that come close, so they are easier to repel. It comes from Luto's
blessing in El Hilo que no tejí.

While slowed down, the projectile moves toward a new slowdown_speed,
or its speed if that's lower. Like the stopping and moving steps of
the walk behaviors, add a slowdown_step for when the projectile is
faster than its target speed, and keep speed_step for when it's
slower, so the two can be set up differently. Being repelled clears
the slowdown.
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/hilo-abilities/.

(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