diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2019-04-28 07:25:26 +0200 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2019-04-28 07:25:26 +0200 |
commit | 3c5d537524d90993f54600bf78d043110d708b35 (patch) | |
tree | 5e2c32737943e9dd69183c05e81bf083b6b7af1c /nGJ2019/Assets/Scripts | |
parent | 4e3a0fc7dc6e32d90168705f7ce4355fcf40cee7 (diff) |
Added tutorial
Diffstat (limited to 'nGJ2019/Assets/Scripts')
-rw-r--r-- | nGJ2019/Assets/Scripts/Messenger.cs | 13 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/ObstacleSpawner.cs | 15 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/TitleScreen.cs | 2 |
3 files changed, 27 insertions, 3 deletions
diff --git a/nGJ2019/Assets/Scripts/Messenger.cs b/nGJ2019/Assets/Scripts/Messenger.cs index c86bcce..a1935fd 100644 --- a/nGJ2019/Assets/Scripts/Messenger.cs +++ b/nGJ2019/Assets/Scripts/Messenger.cs @@ -15,8 +15,17 @@ public class Messenger : MonoBehaviour {
timeline = Spawner.GetEventTimeline();
- //timeline.Add(1, "Test");
- //timeline.Add(3, "");
+ var scene = UnityEngine.SceneManagement.SceneManager.GetActiveScene();
+ if (scene.name == "Tutorial")
+ {
+ timeline.Add(2, "USE WSAD KEYS OR GAMEPAD THUMB TO CONTROL THE DRAGON");
+ timeline.Add(8, "AVOID OBSTACLES, YOU WILL LOSE HEALTH IF YOU HIT THEM");
+ timeline.Add(31, "USE I, J, AND K KEYS TO CHANGE THE DRAGON FORM");
+ timeline.Add(39, "PRESS J TO SHRINK AND FIT IN THE NARROW PASSAGE AHEAD");
+ timeline.Add(43, "");
+ timeline.Add(55, "PRESS K TO SPLIT INTO PARTICLES AND GO THROUGH THE NET");
+ timeline.Add(59, "");
+ }
timeline.OnMessageEvent += MessageOnEvent;
}
diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs index 931a96b..bea85b2 100644 --- a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs +++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs @@ -56,6 +56,21 @@ public class ObstacleSpawner : MonoBehaviour timeline.Add(i * 12.5f + 15f, new Vector3(0, 0.5f, 3), ObstacleType.net); } } + else if (scene.name == "Tutorial") + { + for (int i = 0; i < 60; i++) + timeline.Add(i * 2.5f, new Vector3(0, 0, 0), ObstacleType.caveWalls); + + timeline.Add(10, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + timeline.Add(15, new Vector3(0, -2, 0), ObstacleType.rockBottom); + timeline.Add(20, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + timeline.Add(23, new Vector3(0, -2, 0), ObstacleType.rockBottom); + timeline.Add(26, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + + timeline.Add(40, new Vector3(0, 0, 0), ObstacleType.narrowPassage); + timeline.Add(48, new Vector3(0, -2.5f, 2), ObstacleType.rockJaws); + timeline.Add(56, new Vector3(0, 0.5f, 3), ObstacleType.net); + } else if (scene.name == "Level1") { for (int i = 0; i < 1000; i++) diff --git a/nGJ2019/Assets/Scripts/TitleScreen.cs b/nGJ2019/Assets/Scripts/TitleScreen.cs index d439c51..3ec62b2 100644 --- a/nGJ2019/Assets/Scripts/TitleScreen.cs +++ b/nGJ2019/Assets/Scripts/TitleScreen.cs @@ -15,7 +15,7 @@ public class TitleScreen : MonoBehaviour public void ToLevel1() { - SceneManager.LoadScene("Level1"); + SceneManager.LoadScene("Tutorial"); } public void Quit() |