Richard Kang PPJ#2

Time Used:
Main Menu - 1.25 hour
Level Select - 1.5 hours
Presentation work - 1 hour
Total - 3.75 hours

Samples:

  private void spawnCurLevelSelect()
    {
        if (spawnedLevel != null)
        {
            Destroy(spawnedLevel);
        }
        spawnedLevel = Instantiate(levels[currentSelection]);
        spawnedLevel.transform.SetParent(this.transform);
        spawnedLevel.transform.localPosition = new Vector3(0, 0, 0);
    }
    public void getNext()
    {
        if (levels.Length-1 > currentSelection)
        {
            currentSelection++;
        } else if (levels.Length > currentSelection)
        {
            currentSelection = 0;
        }
        spawnCurLevelSelect();
    }
    public void getPrev()
    {
        if (levels.Length < currentSelection)
        {
            currentSelection=0;
        }
        else if (levels.Length >0)
        {
            currentSelection--;
        }
        spawnCurLevelSelect();
    }
    public void loadScene()
    {
        string temp = spawnedLevel.name.Replace("(Clone)","");
        SceneManager.LoadScene(temp, LoadSceneMode.Single);
    }
}



Positive: My work was done with little issue and hopefully done with a framework to easily add additional levels when needed.

Negative: Settings was not implemented as it was added for necessity down the line, but nothing to change yet.

Upcoming: Add more levels, make sure that the design of the menus are completed and fitting.

Comments

Popular posts from this blog

Sean McFadden Final PPJ

Rex Christian Personal Postmortem

Sean McFadden PPJ#7