You Only Have One Box

YOHOB Project Description

This was a 48 hour game jam me and two friends joined (they are linked on the itch page).

The theme of the game jam was "you only have one". So we made a parkour game where you have one box you carry around to navigate the level.
The game is not fully polished but we did also not expect that for 48 hours. It has a tutorial level and 2 real levels you can play.

What I made

My role in this project was the menus and UI, the player camera. And I made the levels.

We did not have set roles so we all helped with each other’s parts but these where the main ones I made. You can also see who made what in the "credits" menu I made and you can see the asset packs we used.

Project Info

Made with - Unity, C#, Librespirte
Released - 27 September 2024
48 hour project, 3 person team

Click here for GitHub

Click here for itch.io

YOHOB Screenshot 1 YOHOB Screenshot 2 YOHOB Screenshot 3 YOHOB Screenshot 4

Play You Only Have One Box

Player Camera Script


public class PlayerCam : MonoBehaviour
{
    [SerializeField] Transform playerTransform;
    float yPos;

    private void Update()
    {
        // Very simple camera following the player
        if(yPos >= -3.5f)
        {
            yPos = playerTransform.position.y + 1.5f;
        }
        else
        {
            yPos = -3.6f;
        }

        if(playerTransform.position.y >= -3.6)
        {
            yPos = playerTransform.position.y + 1.5f;
        }
        
        transform.position = new Vector3(playerTransform.position.x, yPos, playerTransform.position.z - 10);

        // Kill the player when they fall into the void
        if(playerTransform.position.y <= -8)
        {
            PlayerInfo.Instance.DamagePoints++;
        }
    }
}