Changeset 6423


Ignore:
Timestamp:
2015-06-26 07:44:33 (8 years ago)
Author:
sieerinn
Message:

Tuliseinän animointi. Maidolla voi myös sammuttaa tulipallot.

Location:
2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun
Files:
16 added
2 edited

Legend:

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

    r6422 r6423  
    233233    private Animation fireballAnimation; 
    234234    private Animation hedgehogAnimation; 
     235    private Animation fireWallAnimation; 
    235236 
    236237    private Animation bossRiseAnimation; 
     
    427428        fireballAnimation = LoadAnimation("fireball"); 
    428429        hedgehogAnimation = LoadAnimation("siili"); 
     430        fireWallAnimation = LoadAnimation("firewallanim"); 
    429431 
    430432        cameraOffset = Window.Width / 4; 
     
    525527            GameObject lava = new GameObject(300, Level.Height); 
    526528            lava.Image = lavaWallImage; 
     529            lava.Animation = new Animation(fireWallAnimation); 
     530            lava.Animation.Start(); 
    527531            lava.X = Camera.ScreenToWorld(new Vector(-Window.Width / 2.0, 0)).X; 
    528532            Add(lava, 3); 
     
    555559                fireball.Tag = "burn"; 
    556560                Add(fireball); 
     561 
     562                AddCollisionHandler(fireball, "milkparticle", delegate(PhysicsObject f, PhysicsObject particle) 
     563                { 
     564                    fireball.Destroy(); 
     565                    particle.Destroy(); 
     566                }); 
    557567            }; 
    558568            fireballTimer.Start(); 
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRunContent/HillbillyRunContent.contentproj

    r6414 r6423  
    484484    </Compile> 
    485485  </ItemGroup> 
     486  <ItemGroup> 
     487    <Compile Include="firewallanim.anim"> 
     488      <Name>firewallanim</Name> 
     489      <Importer>AnimationImporter</Importer> 
     490      <Processor>AnimationContentProcessor</Processor> 
     491    </Compile> 
     492  </ItemGroup> 
    486493  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    487494  <!--  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.