aframevr / a-blast

💥 Save the World From the Cutest Creatures in the Universe!
https://aframe.io/a-blast/
MIT License
128 stars 66 forks source link

wave sequence not correct #84

Closed feiss closed 8 years ago

feiss commented 8 years ago

The first wave is repeated twice. The message says "WAVE 2" but the enemies are from wave 1.

Here's a waves.js for quick test. It has two waves, the first one with 2 sequences of one enemy0, and the next one with one subwave with enemy1

var WAVES = [
  {
    name: "WAVE 1",
    sequences: [
      { start: 0, random: 0, subwave: "2",
        enemies:[ {type: "enemy0", points: [[1.874,-7.677,-8.328],[3.490,6.398,-7.157]], movement: "single", random: 0, } ] },
      { start: 0, random: 0, subwave: "2",
        enemies:[ {type: "enemy0", points: [[1.874,-7.677,-8.328],[3.490,6.398,-7.157]], movement: "single", random: 0, } ] },
    ]
  },
  {
    name: "WAVE 2",
    sequences: [
      { start: 0, random: 0, subwave: "2001",
        enemies:[{ points: [[0.102,-11.982,-9.037],[0.142,3.765,-13.133],[-1.412,2.089,-8.481],[0.152,1.404,-2.714],[0.164,5.907,-2.462],[1.545,6.252,-9.056]],
            type: ["enemy2"], movement: "loop", enemyTimeOffset: -1585, random: 0,
          }
        ]
      }
    ]
  }
];