Changeset 972


Ignore:
Timestamp:
2010-06-18 12:35:44 (13 years ago)
Author:
tekrjant
Message:

Ääniefekti.

Location:
2010/24/tekrjant/Laskuvarjo
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2010/24/tekrjant/Laskuvarjo/Content/Content.contentproj

    r956 r972  
    111111    </Compile> 
    112112  </ItemGroup> 
     113  <ItemGroup> 
     114    <Compile Include="plats.wav"> 
     115      <Name>plats</Name> 
     116      <Importer>WavImporter</Importer> 
     117      <Processor>SoundEffectProcessor</Processor> 
     118    </Compile> 
     119  </ItemGroup> 
    113120</Project> 
  • 2010/24/tekrjant/Laskuvarjo/Peli.cs

    r957 r972  
    1414    Image seinanKuva; 
    1515    Image[] pilvenKuvat; 
     16    SoundEffect plats; 
    1617 
    1718    PhysicsObject maasto; 
     
    2526    { 
    2627        LataaKuvat(); 
     28        plats = LoadSoundEffect("plats"); 
    2729 
    2830        Gravity = new Vector(0, -500); 
     
    108110        if (Math.Abs(pelaaja.Velocity.Y) > 200) 
    109111        { 
     112            plats.Play(); 
    110113            Kuole(); 
    111114        } 
Note: See TracChangeset for help on using the changeset viewer.