private void LoadWaves() { Vector3 posWave = Vector3.Zero; waves = new Water.Wave[waveDensity]; Effect watereffect = game.Assets.Load <Effect>("water"); int waveSize = 5; for (int i = 0; i < waves.Length; i++) { posWave = new Vector3((float)randy.Next(0, 384), origin.Y + 0.01f, (float)randy.Next(0, 384)); waves[i] = new Water.Wave(game, 2, new Vector2(waveSize), posWave, waveTexture, (float)randy.NextDouble(), watereffect); } }
private void LoadWaves() { Vector3 posWave = Vector3.Zero; waves = new Water.Wave[waveDensity]; Effect watereffect = game.Assets.Load<Effect>("water"); int waveSize = 5; for (int i = 0; i < waves.Length ; i++){ posWave = new Vector3((float)randy.Next(0, 384), origin.Y + 0.01f, (float)randy.Next(0, 384)); waves[i] = new Water.Wave(game, 2, new Vector2(waveSize), posWave, waveTexture, (float)randy.NextDouble(), watereffect); } }