Esempio n. 1
0
 /// <summary>
 /// Creates a new sun object
 /// </summary>
 /// <param name="shape">Which shape to use to draw this</param>
 /// <param name="position">Where to draw it on the screen</param>
 public Sun(Game game, Shape shape, Vector3 position)
     : base(game, shape, position)
 {
     if ((shape == null) || (shape is EvolvedSun))
     {
         center = new Vector3(.5f, .5f, 0);
         rotation = Vector3.Zero;
         radius = 15f;
     }
     else
     {
         scale = new Vector3(8, 8, 8);
         radius = 11f;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// This constructor creates an item with a particular shape at a particular point
 /// </summary>
 /// <param name="shape">A shape that represents the item</param>
 /// <param name="initialPosition">The world space position</param>
 public SpacewarSceneItem(Game game, Shape shape, Vector3 initialPosition)
     : base(game, shape, initialPosition)
 {
 }