Skip to content

They call me the rope demon - #79

Open
Hanson-Sun wants to merge 11 commits into
testfrom
hanson-harpoon-rope-mechanics
Open

Hanson-Sun wants to merge 11 commits into
testfrom
hanson-harpoon-rope-mechanics

Conversation

@Hanson-Sun

Copy link
Copy Markdown
Collaborator
Screen.Recording.2025-03-17.210436.mp4

its pretty cool I'm ngl, just dont read the code 😅

@drew-gnaw
drew-gnaw changed the base branch from main to test March 18, 2025 06:11
@arthu-rguo

Copy link
Copy Markdown
Collaborator

cope demon

@drew-gnaw

Copy link
Copy Markdown
Collaborator

AHHHH we need to fix some things

@Hanson-Sun

Copy link
Copy Markdown
Collaborator Author

drool emoji 🤤

@Hanson-Sun

Copy link
Copy Markdown
Collaborator Author

shooting rope

@arthu-rguo
arthu-rguo requested a review from Copilot March 27, 2025 09:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>();

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.

4 participants