GAMBIT
Gameplay Programmer / Designer
Team Size: 7
January 2023 - April 2023
Gambit is a game about an unfortunate player who got caught and brought into an evil mastermind’s gameshow. Through televisions around the game, the player can travel to different levels and complete a task, ranging from finding collectibles around a level, or just making it to the end of a level.
For this project, I was responsible for creating a majority of the code in the game, including a system that teleports the player a short distance forwards that also prevents them from teleporting out of bounds. Additionally, as this game is isometric, I had to create the PlayerController to adapt to an isometric style of gameplay, which utilizes Quaternion.Euler() to adapt to an isometric world; in essence, it converts the directions the player moves 45 degrees to the left.
Initializes the variables and makes them public to ensure they are easily editable.
Initialize telepos as the teleporting point the player will teleport to.
If the player presses q, and they are able to teleport, they will teleport to the position of the teleporting point in front of the player.
The IENumerator is called to set the cooldown for teleporting for however long the player sets the value to in the parameters.
Set movement, a Vector3D variable, equal to the horizontal position and vertical position of the player’s input.
Use Translate variable with Quaternion.Euler() to shift the player’s movement to the left 45 degrees to the left, making them move in the same direction as their isometric view.