Changeset 8944 for 2016/koodauskerho


Ignore:
Timestamp:
2017-07-05 15:02:58 (6 years ago)
Author:
npo17_37
Message:
 
Location:
2016/koodauskerho/VilleH
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/ninjakissanhikileikit.cs

    r8926 r8944  
    1717    Image pelaajanKuva = LoadImage("genzo"); 
    1818    SoundEffect Heals = LoadSoundEffect("i-need-healing_wrhVDnC"); 
     19    SoundEffect cena = LoadSoundEffect("john-cena_1"); 
    1920 
    2021    Image doritos = LoadImage("doritos-nacho-cheese"); 
     
    5455        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    5556        Level.CreateBorders(); 
     57 
     58        Level.Background.Image = LoadImage("tausta"); 
     59        Level.Background.FitToLevel(); 
     60        Level.Background.TextureWrapSize = new Vector(3, 1); 
    5661         
    5762    } 
     
    227232            Add(viesti); 
    228233        } 
    229         if (vastaus[0] == "doggo") 
     234        if (vastaus[0] == "cena") 
     235        { 
     236            cena.Play(); 
     237        } 
     238            if (vastaus[0] == "genji") 
     239        { 
     240            Heals.Play(); 
     241        } 
     242            if (vastaus[0] == "doggo") 
    230243        { 
    231244            int dogot = 1; 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/TasohyppelypeliContent.contentproj

    r8920 r8944  
    136136      <Processor>SoundEffectProcessor</Processor> 
    137137    </Compile> 
    138     <Content Include="kentta.png"> 
    139       <Name>kentta</Name> 
     138  </ItemGroup> 
     139  <ItemGroup> 
     140    <Compile Include="tausta.jpg"> 
     141      <Name>tausta</Name> 
    140142      <Importer>TextureImporter</Importer> 
    141143      <Processor>TextureProcessor</Processor> 
    142     </Content> 
     144    </Compile> 
     145  </ItemGroup> 
     146  <ItemGroup> 
     147    <Compile Include="john-cena_1.mp3"> 
     148      <Name>john-cena_1</Name> 
     149      <Importer>Mp3Importer</Importer> 
     150      <Processor>SongProcessor</Processor> 
     151    </Compile> 
    143152  </ItemGroup> 
    144153  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/kentta1.txt

    r8919 r8944  
    11        
    2             
    3             
    4             
    5             
    6             
    7             
    8  
    9  
    10  
    11  
    12  
    13  
    14  
    15  
    16  
    17  
    18  
    19  
    202 
    213 
Note: See TracChangeset for help on using the changeset viewer.