Changeset 6404 for 2015/26


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

Turpaanottamisanimaatio.

Location:
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun
Files:
9 added
2 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); 
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRunContent/HillbillyRunContent.contentproj

    r6403 r6404  
    425425    </Compile> 
    426426  </ItemGroup> 
     427  <ItemGroup> 
     428    <Compile Include="bosshurt.anim"> 
     429      <Name>bosshurt</Name> 
     430      <Importer>AnimationImporter</Importer> 
     431      <Processor>AnimationContentProcessor</Processor> 
     432    </Compile> 
     433  </ItemGroup> 
    427434  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    428435  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.