/******************************************************************************************* * Create stars * *****************************************************************************************/ private void CreateStars() { for (int i = 0; i <= 400; ++i) { star = new Obstacle(); star.SetPosition(rnd.Next(-1000, 2000), rnd.Next(-1000, 1000), rnd.Next(-1000, 3000)); star.LoadContent(Content, "Models/star"); listOfStars.Add(star); } }
private void CreateObstacles6() { for (int i = 0; i <= 1; ++i) { obstacle = new Obstacle(); obstacle.SetPosition(0, 0, i * 50); obstacle.LoadContent(Content, "Models/asteroid"); listOfObstacles6.Add(obstacle); } }
private void CreateObstacles4() { for (int i = 0; i <= 5; ++i) { obstacle = new Obstacle(); obstacle.SetPosition(80, i * 30, -60); obstacle.LoadContent(Content, "Models/asteroid"); listOfObstacles4.Add(obstacle); } }
/******************************************************************************************* * Create astronauts * *****************************************************************************************/ private void CreateAstronauts() { astronaut1 = new Obstacle(); astronaut1.SetPosition(10, 50, 30); astronaut1.LoadContent(Content, "Models/astronaut"); listOfAstronauts.Add(astronaut1); astronaut2 = new Obstacle(); astronaut2.SetPosition(-60, 150, -40); astronaut2.LoadContent(Content, "Models/astronaut"); listOfAstronauts.Add(astronaut2); astronaut3 = new Obstacle(); astronaut3.SetPosition(20, 100, -50); astronaut3.LoadContent(Content, "Models/astronaut"); listOfAstronauts.Add(astronaut3); }