They call me the rope demon - #79
Open
Hanson-Sun wants to merge 11 commits into
Open
Hanson-Sun wants to merge 11 commits into
Hanson-Sun wants to merge 11 commits into
Conversation
Collaborator
|
cope demon |
Collaborator
|
AHHHH we need to fix some things |
Collaborator
Author
|
drool emoji 🤤 |
Collaborator
Author
|
shooting rope |
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces new rope functionality to the existing harpoon gun system by adding rope attachment points, a new rope generation script with pooling, and integrating rope instantiation and cleanup within the gun script.
- Added a rope attachment point and associated rope reference in the spear object.
- Introduced the HarpoonRope script for dynamic rope creation using pooled segments.
- Updated the HarpoonGun script to generate and destroy ropes when firing or collecting spears.
Reviewed Changes
Copilot reviewed 4 out of 13 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Assets/Scripts/Weapon/HarpoonGun/HarpoonSpear.cs | Added ropeAttachmentPoint and a rope property |
| Assets/Scripts/Weapon/HarpoonGun/HarpoonRope.cs | Implemented a new rope class with segment pooling and linking |
| Assets/Scripts/Weapon/HarpoonGun/HarpoonGun.cs | Updated logic to instantiate and clean up rope objects |
Files not reviewed (9)
- Assets/Prefabs/Weapons/HarpoonGun/HarpoonGun.prefab: Language not supported
- Assets/Prefabs/Weapons/HarpoonGun/HarpoonRopeSegment.prefab: Language not supported
- Assets/Prefabs/Weapons/HarpoonGun/HarpoonRopeSegment.prefab.meta: Language not supported
- Assets/Prefabs/Weapons/HarpoonGun/HarpoonSpear.prefab: Language not supported
- Assets/Scenes/World 0/10_ArmadilloRoom2.unity: Language not supported
- Assets/Scripts/Weapon/HarpoonGun/HarpoonRope.cs.meta: Language not supported
- ProjectSettings/DynamicsManager.asset: Language not supported
- ProjectSettings/Physics2DSettings.asset: Language not supported
- ProjectSettings/TagManager.asset: Language not supported
Comments suppressed due to low confidence (3)
Assets/Scripts/Weapon/HarpoonGun/HarpoonSpear.cs:37
- [nitpick] Consider renaming the property 'rope' to 'Rope' to follow C# PascalCase naming conventions for public properties.
public HarpoonRope rope { get; set; }
Assets/Scripts/Weapon/HarpoonGun/HarpoonRope.cs:150
- [nitpick] Consider renaming 'final_hinge' to 'finalHinge' to adhere to C# naming conventions.
HingeJoint2D final_hinge = previousBody.GetComponent<HingeJoint2D>();
Assets/Scripts/Weapon/HarpoonGun/HarpoonRope.cs:165
- [nitpick] Consider renaming 'final_hinge' to 'finalHinge' to follow C# naming standards.
HingeJoint2D final_hinge = segments.First.Value.GetComponent<HingeJoint2D>();
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.
Screen.Recording.2025-03-17.210436.mp4
its pretty cool I'm ngl, just dont read the code 😅