Ignore:
Timestamp:
2015-06-25 22:26:29 (5 years ago)
Author:
sieerinn
Message:

Turpaanottamisanimaatio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs

    r6403 r6404  
    230230    private Animation bossFallAnimation; 
    231231    private Animation bossHitAnimation; 
     232    private Animation bossHurtAnimation; 
    232233    #endregion 
    233234 
     
    404405        bossFallAnimation = LoadAnimation("bossfall"); 
    405406        bossHitAnimation = LoadAnimation("bosshit"); 
     407        bossHurtAnimation = LoadAnimation("bosshurt"); 
    406408 
    407409        cameraOffset = Window.Width / 4; 
     
    527529 
    528530        List<PhysicsObject> eyes = null; // Lista jotta voi käyttää kätevästi ForEach:ia. 
    529         var health = new IntMeter(6, 0, 6); // Vähenee vain heinähangolla. 
     531        var health = new IntMeter(3, 0, 3); // Vähenee vain heinähangolla. 
    530532        var eyeHealth = new IntMeter(30, 0, 30); // Vähenee maidon loiskutuksella. 
    531533 
     
    557559            { 
    558560                health.Value--; 
     561 
     562                boss.Animation = bossHurtAnimation; 
     563                boss.Animation.Start(1); 
     564                boss.Animation.Played += () => boss.Animation = bossFallAnimation; 
    559565            } 
    560566        }); 
     
    571577        { 
    572578            var rock = new PhysicsObject(30, 30); 
    573             rock.Position = boss.Position + new Vector(RandomGen.NextDouble(-300, 100), 300); 
     579            rock.Position = boss.Position + new Vector(RandomGen.NextDouble(-650, 100), 300); 
     580            rock.Image = blockImages[1]; 
     581            rock.Tag = "burn"; 
    574582            rock.LifetimeLeft = TimeSpan.FromSeconds(2.0); 
    575583            Add(rock); 
Note: See TracChangeset for help on using the changeset viewer.