示例#1
0
        public Ship() : base()
        {
            mass = 50;
            inertia = 500;

            angular_velocity = 0.1f;

            hull_sprite = ArtManager.NewArtSprite("ship");
        }
示例#2
0
 public void Paint( Color color )
 {
     if (color != null)
     {
         paint_sprite = ArtManager.GetSpriteResource(template.paint_art_resource).New();
         paint_sprite.color = color;
     }
     else
     {
         paint_sprite = null;
     }
 }