Changeset 6303 for 2015/26


Ignore:
Timestamp:
2015-06-25 00:19:59 (8 years ago)
Author:
jotapoti
Message:

Add splash.wav and play it when throwing out milk

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

Legend:

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

    r6301 r6303  
    180180    #endregion 
    181181 
     182    #region Sounds 
     183    private SoundEffect splash = LoadSoundEffect("splash"); 
     184    #endregion 
     185 
    182186    private double leftCamLimit; 
    183187    private double rightCamLimit; 
     
    843847    public void CreateMilkParticles(HillBilly billy, int size, int xBase, int yBase, Vector position, String tag) 
    844848    { 
     849        splash.Play(); 
    845850        for (int i = 0; i < 10; i++) 
    846851        { 
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRunContent/HillbillyRunContent.contentproj

    r6301 r6303  
    248248  </ItemGroup> 
    249249  <ItemGroup> 
     250    <Compile Include="splash.wav"> 
     251      <Name>splash</Name> 
     252      <Importer>WavImporter</Importer> 
     253      <Processor>SoundEffectProcessor</Processor> 
     254    </Compile> 
     255  </ItemGroup> 
     256  <ItemGroup> 
    250257    <Compile Include="rock.png"> 
    251258      <Name>rock</Name> 
Note: See TracChangeset for help on using the changeset viewer.