Пример #1
0
 public void RenderFallingCircle()
 {
     var ellipse = new Ellipse(Vector2D.Half, 0.1f, 0.1f, Color.Blue);
     ellipse.Add(new SimplePhysics.Data
     {
         Velocity = new Vector2D(0.1f, -0.1f),
         Gravity = new Vector2D(0.0f, 0.1f)
     });
     ellipse.Start<SimplePhysics.Move>();
 }
Пример #2
0
		public void SetUp()
		{
			ellipse = new Ellipse(Vector2D.Half, 0.2f, 0.1f, Color.Blue);
			ellipse.Add(new Name("name"));
			writer = new EntityWriter(ellipse);
			drawAreaBox = writer.scene.Controls[1] as TextBox;
			colorRSlider = writer.scene.Controls[3] as Slider;
			colorGSlider = writer.scene.Controls[5] as Slider;
			colorBSlider = writer.scene.Controls[7] as Slider;
			colorASlider = writer.scene.Controls[9] as Slider;
			nameBox = writer.scene.Controls[11] as TextBox;
			rotationBox = writer.scene.Controls[13] as TextBox;
			rotationCenterBox = writer.scene.Controls[15] as TextBox;
		}