aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Bybjerg <mikkel.bybjerg@hotmail.com>2019-04-28 05:22:12 +0200
committerMikkel Bybjerg <mikkel.bybjerg@hotmail.com>2019-04-28 05:22:12 +0200
commit62194a5924f0ab8f26693d96a58195cb4380d69c (patch)
treeeeb4af9dd64079c348bed0c0c1b67d98e562fe9d /nGJ2019/Assets/Scripts
parent35d8cdbd3c6d77ceaf73ac00d4a2876dcda6645f (diff)
parent4e3a0fc7dc6e32d90168705f7ce4355fcf40cee7 (diff)
merge
Diffstat (limited to 'nGJ2019/Assets/Scripts')
-rw-r--r--nGJ2019/Assets/Scripts/ObstacleSpawner.cs12
-rw-r--r--nGJ2019/Assets/Scripts/TitleScreen.cs.meta11
2 files changed, 23 insertions, 0 deletions
diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
index 3c09e6f..931a96b 100644
--- a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
+++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
@@ -56,6 +56,18 @@ public class ObstacleSpawner : MonoBehaviour
timeline.Add(i * 12.5f + 15f, new Vector3(0, 0.5f, 3), ObstacleType.net);
}
}
+ else if (scene.name == "Level1")
+ {
+ for (int i = 0; i < 1000; i++)
+ {
+ timeline.Add(i * 2.5f, new Vector3(0, 0, 0), ObstacleType.caveWalls);
+ timeline.Add(i * 12.5f + 3, new Vector3(0, 2.75f, 0), ObstacleType.rockTop);
+ timeline.Add(i * 12.5f + 6, new Vector3(0, -2, 0), ObstacleType.rockBottom);
+ timeline.Add(i * 12.5f + 9, new Vector3(0, 0, 0), ObstacleType.narrowPassage);
+ timeline.Add(i * 12.5f + 12.5f, new Vector3(0, -2.5f, 2), ObstacleType.rockJaws);
+ timeline.Add(i * 12.5f + 15f, new Vector3(0, 0.5f, 3), ObstacleType.net);
+ }
+ }
timeline.OnSpawnEvent += spawnOnEvent;
}
diff --git a/nGJ2019/Assets/Scripts/TitleScreen.cs.meta b/nGJ2019/Assets/Scripts/TitleScreen.cs.meta
new file mode 100644
index 0000000..8b15597
--- /dev/null
+++ b/nGJ2019/Assets/Scripts/TitleScreen.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: a33c115845f094d1ea23a02866431be0
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: