-
Notifications
You must be signed in to change notification settings - Fork 500
Signpost: Add non-directional variant #2933 #2936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,12 @@ func _ready() -> void: | |
|
|
||
|
|
||
| func update_appearance() -> void: | ||
| $Appearance.flip_h = direction == Enums.LookAtSide.RIGHT | ||
| if direction == Enums.LookAtSide.UNSPECIFIED: | ||
| $Appearance.frame = 0 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be better to add an enum so the frames 0 and 1 have more meaning. Also considering that at one point we will have 2 more frames, for pointing up and for pointing down (check #2932). |
||
| $Appearance.flip_h = false | ||
| else: | ||
| $Appearance.frame = 1 | ||
| $Appearance.flip_h = direction == Enums.LookAtSide.RIGHT | ||
|
Comment on lines
+30
to
+35
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a unique name to the This predates to your changes, the sign is one of the oldest components in this repository and it doesn't follow the current conventions. |
||
|
|
||
|
|
||
| func _on_area_2d_body_entered(_body: Node2D) -> void: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea using Sprite2D frames for making this simpler. This is changing a third-party asset. TinySwords "legacy". But I think is fine, because PixelFrog is not going to update it. Updates go to the new pack (which we ship in
assets/third_party/tiny-swords-non-cc0/with permission from PixelFrog).