Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-Gary committed Dec 11, 2021
1 parent 9749104 commit 7d2d71f
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 7 deletions.
Binary file modified Portal2d/Assets/Level Prefabs/Player.prefab
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Portal2d/Assets/Player Control/Scripts/BasicMove.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void Update()


// jump input
if ((Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow)) && isgrounded) { // jump when on the ground
if ((Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.Space)) && isgrounded) { // jump when on the ground
shouldJump = true;
}
}
Expand Down
Binary file modified Portal2d/Assets/Scenes/Levels/00_Start.unity
Binary file not shown.
Binary file modified Portal2d/Assets/Scenes/Levels/01_BasicTut.unity
Binary file not shown.
Binary file modified Portal2d/Assets/Scenes/Levels/10_trigger_tut.unity
Binary file not shown.
Binary file modified Portal2d/Assets/Scenes/Levels/21_gravity2.unity
Binary file not shown.
Binary file modified Portal2d/Assets/Scenes/Levels/Level-Bonus.unity
Binary file not shown.
Binary file modified Portal2d/Assets/Scenes/Levels/Menu.unity
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ IEnumerator TellFakeEndStory()
BlackPanel.SetActive(true);

storyText.text = "";
yield return new WaitForSeconds(2.5f);
yield return new WaitForSeconds(2f);
storyText.text = "Finally... Finally... I get out of the house...";
yield return new WaitForSeconds(3f);
storyText.text = "YEAH!!! I see the sea!";
Expand All @@ -43,13 +43,13 @@ IEnumerator TellFakeEndStory()
storyText.text = "Wait... Why... Why I can't feel the water?";
yield return new WaitForSeconds(3f);
storyText.text = "... Is it real?";
yield return new WaitForSeconds(1.5f);
yield return new WaitForSeconds(2f);
storyText.text = "Why...";
yield return new WaitForSeconds(1.5f);
yield return new WaitForSeconds(2f);
storyText.text = "*Suddenly, I feel so tired and fall asleep*";
yield return new WaitForSeconds(3f);
storyText.text = "*Right before I lose consciousness, I felt that... this seems to have happened before...*";
yield return new WaitForSeconds(3f);
yield return new WaitForSeconds(4f);

LevelManager._instance.loadLevel(0); //go back to level 0 again
}
Expand Down
5 changes: 3 additions & 2 deletions Portal2d/Assets/Scripts/LevelManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public class LevelManager : MonoBehaviour
{9, "12_trigger3" },
{10, "13_trigger4" },
{11, "20_gravity_tut" },
{12, "Level-Ending" },
{13, "Level-Bonus" }
{12, "21_gravity2" },
{13, "Level-Ending" },
{14, "Level-Bonus" }
};

private void Awake()
Expand Down
Binary file modified Portal2d/ProjectSettings/EditorBuildSettings.asset
Binary file not shown.

0 comments on commit 7d2d71f

Please sign in to comment.