public CollectableTest(Game game, GameplayScreen host) : base(game, host) { startingLocation = new Vector3(10f, 25f, 0f); //make a few planes CollisionLevelPiece currentPlane; currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, -10f, 0); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 10; currentPlane.position += new Vector3(200f, -10f, -300f); currentPlane.setLocalRotation(0, (float)Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 10; currentPlane.position += new Vector3(-250f, -10f, -200f); currentPlane.setLocalRotation(0.123f, -(float)Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 5; currentPlane.position += new Vector3(-220f, 10f, 80f); planes.Add(currentPlane); //moving level piece MovingLevelPiece movingPlane; //50 is a good movement speed movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(0, 100f, 0f), 50); movingPlane.scale = 5; movingPlane.position += new Vector3(0f, 0f, -250f); planes.Add(movingPlane); goal = new GoalObject(game, host); goal.position += new Vector3(0, 10, -50); goal.scale = 5; //game.Components.Add(goal); //foreach (LevelPiece p in planes) //{ // game.Components.Add(p); //} Collectable collect1 = new Collectable(game, host); collect1.position = new Vector3(40, 10, 40); collectables.Add(collect1); //foreach (Collectable collect in collectables) //{ // game.Components.Add(collect); //} }
public Level3(Game game, GameplayScreen host) : base(game, host) { startingLocation = new Vector3(10f, 35f, 0f); //make a few planes CollisionLevelPiece currentPlane; currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, 0f, 0); planes.Add(currentPlane); /* * currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); * currentPlane.scale = 15; * currentPlane.position += new Vector3(0f, 0f, -360f); * planes.Add(currentPlane); */ //moving level piece MovingLevelPiece movingPlane; movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(0, -500f, 0), 80f); movingPlane.scale = 15; movingPlane.position += new Vector3(0f, 400f, -360f); planes.Add(movingPlane); //wall currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, 160f, -550f); currentPlane.setLocalRotation((float)Math.PI / 2, 0); planes.Add(currentPlane); //cloud above wall currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, 300f, -730f); planes.Add(currentPlane); //goal goal = new GoalObject(game, host); goal.position += new Vector3(0, 300, -830); goal.scale = 10; //death bound for this level m_fDeathBound = -250f; }
public Level5(Game game, GameplayScreen host) : base(game, host) { startingLocation = new Vector3(1f, 605f, 1f); //make a few planes CollisionLevelPiece currentPlane; currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.ScaleX = 30f; currentPlane.ScaleY = 15f; currentPlane.ScaleZ = 45f; currentPlane.position += new Vector3(0f, 40f, -200f); //currentPlane.setLocalRotation(MathHelper.ToRadians(-30), 0); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.ScaleX = 10f; currentPlane.ScaleY = 10f; currentPlane.ScaleZ = 10f; currentPlane.position += new Vector3(-400f, 40f, -800f); currentPlane.setLocalRotation(0, MathHelper.ToRadians(-20)); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.ScaleX = 10f; currentPlane.ScaleY = 10f; currentPlane.ScaleZ = 30f; currentPlane.position += new Vector3(400f, 40f, -1100f); currentPlane.setLocalRotation(0, MathHelper.ToRadians(20)); planes.Add(currentPlane); MovingLevelPiece movingPlane; movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(300, 485f, 0), 85f); movingPlane.scale = 15; movingPlane.position += new Vector3(-350f, -150f, -1260f); planes.Add(movingPlane); /* * MovingLevelPiece movingPlane; * movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(300, 0f, 0), 85f); * movingPlane.scale = 15; * movingPlane.position += new Vector3(-150f, 0f, -360f); * planes.Add(movingPlane); * * movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(300, 0f, 0), -85f); * movingPlane.scale = 15; * movingPlane.position += new Vector3(150f, 0f, -720f); * planes.Add(movingPlane); * * movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(300, 0f, 0), 85f); * movingPlane.scale = 15; * movingPlane.position += new Vector3(-150f, 0f, -1080f); * planes.Add(movingPlane); * * movingPlane = new MovingLevelPiece(game, host, "checker_plane_3", new Vector3(300, 0f, 0), -85f); * movingPlane.scale = 15; * movingPlane.position += new Vector3(150f, 0f, -1440f); * planes.Add(movingPlane); */ //goal goal = new GoalObject(game, host); goal.position += new Vector3(150, -100, -1540); goal.scale = 10; //collectables //death bound for this level m_fDeathBound = -250f; }