Summary
Highlights
The project begins with setting up the Unity environment, creating necessary folders, and designing the ground using a square sprite and a box collider.
Creating the player character with Rigidbody 2D and Box Collider 2D components, while freezing rotation and X-axis movement to allow for vertical jumping logic.
Writing the C# script to handle jumping, incorporating a grounded check to prevent infinite mid-air jumps, and setting jump force and gravity parameters.
Developing the Spike Generator script to instantiate obstacles dynamically, using trigger zones to spawn new spikes and move them toward the player.
Adding logic to increase game speed over time, implementing object destruction when out of view, and adding randomness to spike generation timing.
Implementing a UI score display that increments over time and adding a game-over state triggered upon collision with an obstacle.