Despite being one of the best collaborative experiences that I've ever had, our first game project started out as a daunting task. I had just barely dipped my feet into the world of game programming, and much to my surprise, it quickly became a daily 8-hour event that I was looking forward to working on every single day.
Here are a few code snippets and a showcase of the games’ mechanics made by me:
Grappling Hook & Climbing
The following code demonstrates how the lineRenderer is used to create the rope for the grappling hook.
The following code demonstrates how collision is utilized in order to detect the ladder and climb it vertically.
Below is an example of how the crumbling platforms work in my prototype game where I tested the functionality of all of my mechanics.
The following code demonstrates how I manipulated the platforms rigidbody2D to react to collision with any object tagged as Player.
The following code demonstrates how the groundCheck prevents the player from being able to jump while on the ground or any object tagged as ground.