예제 #1
0
        public override void LoadAssets()
        {
            ImageAlt = Persistence.GetAssetCopy<Sprite>("mine");
            ImageAlt.Taille = 2;
            ImageAlt.Origine = ImageAlt.Centre;
            Circle.Radius = 15;

            base.LoadAssets();
        }
예제 #2
0
 public AlienSpaceship(double visualPriority)
 {
     Image = new Image("VaisseauAlien")
     {
         SizeX = 8,
         VisualPriority = visualPriority
     };
     
     Tentacules = Persistence.GetAssetCopy<Sprite>("tentacules");
     Tentacules.Taille = 8;
     Tentacules.Origine = Tentacules.Centre;
     Tentacules.VisualPriority = Image.VisualPriority + 0.01f;
 }
예제 #3
0
 public AnimationSprite(Sprite sprite)
     : base(sprite.TempsDefilement, sprite.VisualPriority)
 {
     this.Sprite = sprite;
 }