Author: Harsh Kashyap
Framework: Unity 2022 (2D)
A playable Unity 2D prototype showcasing a custom "Teleport Swap" puzzle/action mechanic.
The player shoots a kinetic projectile. When the projectile collides with a valid target, the player and the target instantaneously swap positions in 2D space.
- Movement:
WASD - Aim:
Mouse - Shoot / Swap:
Left-Click(Target the Blue Square tagged "Swappable")
As per the task allowances for the programming domain, this prototype focuses entirely on clean codebase architecture and mechanic implementation over visual polish.
What I created:
PlayerController.cs: Handles WASD movement.SwapBullet.cs: Handles kinematic projectile movement and the spatial swapping logic viaOnTriggerEnter2D.- Scene Architecture: Created the custom tag database (
Swappable), set up the Prefabs, and configured the Kinematic Rigidbody triggers to ensure bug-free teleportation without clipping.
External Assets & Resources:
- AI Assistance: Gemini AI was utilized for helping me write majority of the the C# swapping code.
- Visuals: No third-party or external art assets were used. All visuals (Player, Projectile, Target, Environment) are standard Unity Default 2D Primitives.
- Audio: No external audio was used.