Deliver or Die

: Unity, : C#, : Visual Studio, : 3 days, : online, : 6 people

In this game jam we worked with student from Sweden. We were placed in a group so we wouldn’t have known each other. The time we had in this game jam was 3 days, and the theme was … & zombies. We decided on base of a Miro board we would make a game about delivering pizza’s in a zombie apocalypse. After we have decided what the game idea was we started brain storming on what we want in the project. Such as: which side will the zombies come from?, will there be obstacles on the way? After we worked that out we started having a meeting with our teammates with the same study. And then we would give each other tasks for example: UI, Player, Zombie. We would give the team updates every 2 hours so that the team is knowing what we are doing. After we were done we went on to win first in the public vote and third in the jury vote.

What did I learn in this project?

I have learned how I can work together in a group in unity. I also learned how git works with the Github Desktop. Also I learned how the UI works in the unity and the Sounds in unity. how Scrum really worked and implemented.

What did I do in this project?

I have worked on the UI and the Sounds so that the game feels more alive! Also that the whole gameloop is complete so that the player can restart, quit and play again.

Code Snippets

Character Sounds

public class CharacterSound : MonoBehaviour
{
    // audio's needed for the character
    [SerializeField] private AudioSource source;
    [SerializeField] private AudioClip[] clips;


    void Start()
    {
        StartCoroutine(PlayAudio());
    }

   // The ieunemator to play the audio
   private IEnumerator PlayAudio()
   {
        while (true)
        {
            yield return new WaitForSeconds(Random.Range(4, 10));
            source.clip = clips[Random.Range(0, clips.Length)];
            source.Play();
            Debug.Log("ping");
        }
   }
}
							

Pause menu

public class PauseMenu : MonoBehaviour
{
    private bool GameIsPaused = false;
    [SerializeField] private GameObject pauseMenuUi;

    void Update()
    {
        //game is paused yes or no?
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            if (GameIsPaused)
                Resume();
            else
                Pause();
        }
    }

    //No? then it will continue on this code:
    public void Resume()
    {
        pauseMenuUi.SetActive(false);
        Time.timeScale = 1f;
        GameIsPaused = false;
    }

    //Yes? then it will pause on this code:
    public void Pause()
    {
        pauseMenuUi.SetActive(true);
        Time.timeScale = 0f;
        GameIsPaused = true;
    }
}
							

All the code from this project:
Github Code