/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); //player = new BallCharacter(ScreenManager.Game, this); player = new DragonBall(ScreenManager.Game, this); player.position = new Vector3(0f, 0f, 0f); player.scale *= 2; ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); c = new Collectable(ScreenManager.Game, this); c.scale = 10; c.position += new Vector3(0f, 0f, 0f); ScreenManager.Game.Components.Add(c); m_kPlane = new CollisionLevelPiece(ScreenManager.Game, this, "checker_plane_3"); m_kPlane.scale = 15; m_kPlane.position += new Vector3(0f, 0f, 0); ScreenManager.Game.Components.Add(m_kPlane); LevelPiece skySphere = new LevelPiece(ScreenManager.Game, this, "sky_sphere"); m_kPlane.scale = 15; m_kPlane.position += new Vector3(0f, 0f, 0); ScreenManager.Game.Components.Add(m_kPlane); }
public Level1(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); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, 0f, -720f); planes.Add(currentPlane); //goal goal = new GoalObject(game, host); goal.position += new Vector3(0, 20, -820); goal.scale = 10; //death bound for this level m_fDeathBound = -100f; }
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); //} }
/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); player = new BallCharacter(ScreenManager.Game, this); player.position = new Vector3(10f, 25f, 0f); ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); String assetName = "checker_plane_3"; //make a few planes CollisionLevelPiece currentPlane; currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, -10f, 0); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 10; currentPlane.position += new Vector3(200f, -10f, -300f); currentPlane.setLocalRotation(0, (float)Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 10; currentPlane.position += new Vector3(-250f, -10f, -200f); currentPlane.setLocalRotation(0.123f, -(float)Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); 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(ScreenManager.Game, this, assetName, new Vector3(0, 100f, 0f), 50); movingPlane.scale = 5; movingPlane.position += new Vector3(0f, 0f, -200f); planes.Add(movingPlane); foreach (LevelPiece p in planes) { ScreenManager.Game.Components.Add(p); } }
public SimpleLevel(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); goal = new GoalObject(game, host); goal.position += new Vector3(40, 10, -20); goal.scale = 5; }
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; }
/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); player = new BallCharacter(ScreenManager.Game, this); player.position = new Vector3(0f, 25f, 0f); ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); m_kPlane = new CollisionLevelPiece(ScreenManager.Game, this, "level1"); //m_kPlane.scale = 50; m_kPlane.position += new Vector3(0, -10f, 0); ScreenManager.Game.Components.Add(m_kPlane); }
public Level2(Game game, GameplayScreen host) : base(game, host) { startingLocation = new Vector3(1f, 35f, 1f); //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); 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(0, 20, -1540f); goal.scale = 10; //death bound for this level m_fDeathBound = -100f; }
/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); m_kCountdownTimer = new Utils.CountdownTimer(ScreenManager.Game, new Vector2(500.0f, 50.0f)); ScreenManager.Game.Components.Add(m_kCountdownTimer); player = new DragonBall(ScreenManager.Game, this); //player = new BallCharacter(ScreenManager.Game, this); player.position = new Vector3(0f, 0f, 0f); player.scale *= 3; ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); m_kPlane = new CollisionLevelPiece(ScreenManager.Game, this, "checker_plane_3"); m_kPlane.scale = 15; m_kPlane.position += new Vector3(50f, -10f, 0); ScreenManager.Game.Components.Add(m_kPlane); }
public Level4(Game game, GameplayScreen host) : base(game, host) { startingLocation = new Vector3(1f, 35f, 100f); //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); //Left arm //large arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 9; currentPlane.position += new Vector3(-180f, 0f, -288); planes.Add(currentPlane); //smaller arms currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(-252f, 0f, -432); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(-108f, 0f, -432); planes.Add(currentPlane); //tiny arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-252f, 0f, -480); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-108f, 0f, -480); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-252f, 0f, -504); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-108f, 0f, -504); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-252f, 0f, -528); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(-108f, 0f, -528); planes.Add(currentPlane); //small arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(-252f, 0f, -576); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(-108f, 0f, -576); planes.Add(currentPlane); //large arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 9; currentPlane.position += new Vector3(-180f, 0f, -720); planes.Add(currentPlane); //Right arm //large arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 9; currentPlane.position += new Vector3(180f, 0f, -288); planes.Add(currentPlane); //smaller arms currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(252f, 0f, -432); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(108f, 0f, -432); planes.Add(currentPlane); //tiny arms currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(252f, 0f, -480); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(108f, 0f, -480); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(252f, 0f, -504); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(108f, 0f, -504); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(252f, 0f, -528); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 1; currentPlane.position += new Vector3(108f, 0f, -528); planes.Add(currentPlane); //small arms currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(252f, 0f, -576); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 3; currentPlane.position += new Vector3(108f, 0f, -576); planes.Add(currentPlane); //large arm currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 9; currentPlane.position += new Vector3(180f, 0f, -720); planes.Add(currentPlane); //connecting bar currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 2; currentPlane.position += new Vector3(48f, 0f, -804); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 2; currentPlane.position += new Vector3(-48f, 0f, -804); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 2; currentPlane.position += new Vector3(0f, 0f, -804); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 2; currentPlane.position += new Vector3(0f, 0f, -852); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(game, host, "checker_plane_3"); currentPlane.scale = 2; currentPlane.position += new Vector3(0f, 0f, -900); planes.Add(currentPlane); //goal goal = new GoalObject(game, host); goal.position += new Vector3(0, 10, -1000); goal.scale = 10; //collectables //death bound for this level m_fDeathBound = -250f; }
/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); player = new BallCharacter(ScreenManager.Game, this); player.position = new Vector3(10f, 25f, 0f); ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); m_kPlane = new CollisionLevelPiece(ScreenManager.Game, this, "checker_plane_3"); m_kPlane.scale = 15; m_kPlane.position += new Vector3(150f, -10f, 0); ScreenManager.Game.Components.Add(m_kPlane); }
/// <summary> /// Load graphics content for the game. /// </summary> public override void LoadContent() { base.LoadContent(); player = new BallCharacter(ScreenManager.Game, this); player.position = new Vector3(10f, 25f, 0f); ScreenManager.Game.Components.Add(player); m_kWallManager = new WallManager(ScreenManager.Game, this); ScreenManager.Game.Components.Add(m_kWallManager); String assetName = "checker_plane_3"; //make a few planes CollisionLevelPiece currentPlane; currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 15; currentPlane.position += new Vector3(0f, -10f, 0); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 10; currentPlane.position += new Vector3(200f, -10f, -300f); currentPlane.setLocalRotation(0, (float) Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); currentPlane.scale = 10; currentPlane.position += new Vector3(-250f, -10f, -200f); currentPlane.setLocalRotation(0.123f, -(float)Math.PI / 18); planes.Add(currentPlane); currentPlane = new CollisionLevelPiece(ScreenManager.Game, this, assetName); 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(ScreenManager.Game, this, assetName, new Vector3(0, 100f, 0f), 50); movingPlane.scale = 5; movingPlane.position += new Vector3(0f, 0f, -200f); planes.Add(movingPlane); foreach (LevelPiece p in planes) { ScreenManager.Game.Components.Add(p); } }