Exemple #1
0
		public void CheckScaleUpdatingForBossVillain()
		{
			var boss = new Boss(BossType.Cloak, Vector2D.Zero);
			boss.RenderModel();
			boss.Scale = 3.0f * Vector3D.One;
			Assert.AreEqual(3.0f * Vector3D.One, boss.Model.Scale);
		}
Exemple #2
0
		public void DrawingCreepCreatesCreepModel()
		{
			var boss = new Boss(BossType.Cloak, Vector2D.Zero, 180.0f);
			boss.RenderModel();
			Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Model>().Count);
			Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Boss>().Count);
		}
Exemple #3
0
		public void DisplayBossVillainFollowingPreDefinedPath()
		{
			camera.ZoomLevel = 1 / 20.0f;
			var grid = new Grid3D(new Size(10, 10));
			grid.RenderLayer = -10;
			var boss = new Boss(BossType.Cloak, Vector2D.Zero);
			boss.RenderModel();
			boss.FinalTarget = new Vector2D(2, 2);
			boss.Path = new List<Vector2D>
			{
				new Vector2D(4, 0),
				new Vector2D(4, 9),
				new Vector2D(2, 9),
				new Vector2D(2, 2)
			};
		}