Skip to content

Remove interact_area.tscn#2042

Merged
manuq merged 1 commit intomainfrom
wjt/remove-interact-area-tscn
Mar 12, 2026
Merged

Remove interact_area.tscn#2042
manuq merged 1 commit intomainfrom
wjt/remove-interact-area-tscn

Conversation

@wjt
Copy link
Member

@wjt wjt commented Mar 11, 2026

This scene was previously an Area2D with interact_area.gd attached. The
advantage of doing this is that the scene has its collision_layer and
collision_mask configured appropriately.

However, interact_area.gd already partially handled this configuration
automatically, toggling the INTERACTABLE bit depending on its disabled
property. In other scenes in the game we had a mixture of instances of
the scene, and bare Area2D nodes with interact_area.gd attached.

Make interact_area.gd fully manage the collision_layer and collision_mask.
Remove the logic to warn if they are incorrect, since it is now not
possible to configure them incorrectly. Eliminate the scene. Simplify
the folder structure slightly.

@wjt wjt requested review from a team as code owners March 11, 2026 09:44
@wjt wjt marked this pull request as draft March 11, 2026 09:44
@wjt

This comment was marked as outdated.

@github-actions
Copy link

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/remove-interact-area-tscn.

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

This scene was previously an Area2D with interact_area.gd attached. The
advantage of doing this is that the scene has its collision_layer and
collision_mask configured appropriately.

However, interact_area.gd already partially handled this configuration
automatically, toggling the INTERACTABLE bit depending on its disabled
property. In other scenes in the game we had a mixture of instances of
the scene, and bare Area2D nodes with interact_area.gd attached.

Make interact_area.gd fully manage the collision_layer and collision_mask.
Remove the logic to warn if they are incorrect, since it is now not
possible to configure them incorrectly. Eliminate the scene. Simplify
the folder structure slightly.
@wjt wjt force-pushed the wjt/remove-interact-area-tscn branch from 07b4287 to fd9f853 Compare March 11, 2026 13:37
@wjt wjt removed the request for review from a team March 11, 2026 13:37
@wjt wjt marked this pull request as ready for review March 11, 2026 13:37
@manuq manuq merged commit 3f46f4d into main Mar 12, 2026
6 checks passed
@manuq manuq deleted the wjt/remove-interact-area-tscn branch March 12, 2026 11:59
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.

2 participants