Browse Source

Fixed 4-player spawn to account for double-moves, changed MapManager to prevent more than one link section spawning in a row.

master
s3607057 (Angus Niven) 5 years ago
parent
commit
32af52cf38
3 changed files with 4793 additions and 2381 deletions
  1. +2
    -2
      Assets/Data/Map Generation/Map Manager.asset
  2. +4785
    -2379
      Assets/Prefabs/Map Sections/Start 4-player.prefab
  3. +6
    -0
      Assets/Scripts/Map Generation/MapManager.cs

+ 2
- 2
Assets/Data/Map Generation/Map Manager.asset View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:66ee3549290b754da513c83339a7881565cff300d26238b0e0c029437af2f9e7
size 1368
oid sha256:db4c2c6716153a4f5d43e33dc677c0f85ff0e002f42aa745ae8a25df0f4f4eab
size 4608

+ 4785
- 2379
Assets/Prefabs/Map Sections/Start 4-player.prefab
File diff suppressed because it is too large
View File


+ 6
- 0
Assets/Scripts/Map Generation/MapManager.cs View File

@ -223,6 +223,12 @@ public class MapManager : ScriptableObject
//Debug.Log("Checking " + first.name + ", " + second.name); //Debug.Log("Checking " + first.name + ", " + second.name);
//No more than one link section in a row
if (first.length == 1 && second.length == 1)
{
return false;
}
//if (second.difficulty < diffMin || second.difficulty > diffMax) //if (second.difficulty < diffMin || second.difficulty > diffMax)
if (second.difficultyMax < difficulty || second.difficultyMin > difficulty) //Check that we're in the right difficulty range for this section if (second.difficultyMax < difficulty || second.difficultyMin > difficulty) //Check that we're in the right difficulty range for this section
{ {

Loading…
Cancel
Save