Changeset 7925


Ignore:
Timestamp:
2016-07-07 09:40:00 (3 years ago)
Author:
jotapoti
Message:

Hypylle aaniefekti lisatty.
Miina lisatty.

Location:
2016/27/JouniP/VenienteFragore/VenienteFragore
Files:
4 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r7924 r7925  
    2020    Image luolanKuva = LoadImage("luola"); 
    2121    Image ilkeanOmenanKuva = LoadImage("ilkeaomena"); 
     22    Image miinanKuva = LoadImage("mine"); 
    2223 
    2324    Animation minimiinii; 
    2425 
    2526    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     27    SoundEffect hyppyaani = LoadSoundEffect("Jump11"); 
    2628 
    2729    Vector aloituspaikka = Vector.Zero; 
     
    7678        kentta.SetTileMethod('O', LisaaLuola); 
    7779        kentta.SetTileMethod('z', LisaaIlkeaTyyppi); 
     80        kentta.SetTileMethod('_', LisaaMiina); 
    7881        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    7982        Level.CreateBorders(); 
    8083        Level.Background.CreateGradient(Color.Gray, Color.SkyBlue); 
     84    } 
     85 
     86    void LisaaMiina(Vector paikka, double leveys, double korkeus) 
     87    { 
     88        PhysicsObject miina = new PhysicsObject(0.8*leveys, korkeus/4); 
     89        miina.MakeStatic(); 
     90        miina.Position = paikka + new Vector(0.0, -(3.0/8.0)*korkeus); 
     91        miina.Image = miinanKuva; 
     92        Add(miina); 
    8193    } 
    8294 
     
    143155        AddCollisionHandler(pelaaja1, "pahis", TormaaPahikseen); 
    144156        Add(pelaaja1); 
     157         
    145158    } 
    146159 
     
    203216    { 
    204217        hahmo.Jump(nopeus); 
     218        hyppyaani.Play(0.4, 0.0, 0.0); 
    205219    } 
    206220 
     
    208222    { 
    209223        pistelaskuri.Value++; 
    210         maaliAani.Play(); 
     224        maaliAani.Play(0.4, 0.0, 0.0); 
    211225        MessageDisplay.Add("Keräsit tähden!"); 
    212226        tahti.Destroy(); 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.csproj.Debug.cachefile

    r7870 r7925  
    1313Content\advena.xnb 
    1414Content\kentta2.xnb 
     15Content\Jump11.xnb 
     16Content\mine.xnb 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7872 r7925  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-07-06T12:40:48.6505359+03:00</Time> 
     38      <Time>2016-07-07T09:27:49.5842555+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    131131      <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta2.xnb</Output> 
    132132      <Time>2016-07-06T12:26:46.8870339+03:00</Time> 
     133    </Item> 
     134    <Item> 
     135      <Source>Jump11.wav</Source> 
     136      <Name>Jump11</Name> 
     137      <Importer>WavImporter</Importer> 
     138      <Processor>SoundEffectProcessor</Processor> 
     139      <Options>None</Options> 
     140      <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\Jump11.xnb</Output> 
     141      <Time>2016-07-07T09:20:08.7627314+03:00</Time> 
     142    </Item> 
     143    <Item> 
     144      <Source>mine.png</Source> 
     145      <Name>mine</Name> 
     146      <Importer>TextureImporter</Importer> 
     147      <Processor>TextureProcessor</Processor> 
     148      <Options>None</Options> 
     149      <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\mine.xnb</Output> 
     150      <Time>2016-07-07T09:27:17.9420916+03:00</Time> 
    133151    </Item> 
    134152    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/VenienteFragore.csproj.FileListAbsolute.txt

    r7870 r7925  
    2121C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\advena.xnb 
    2222C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta2.xnb 
     23C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\Jump11.xnb 
     24C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\mine.xnb 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r7870 r7925  
    1313Content\advena.xnb 
    1414Content\kentta2.xnb 
     15Content\Jump11.xnb 
     16Content\mine.xnb 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragoreContent/VenienteFragoreContent.contentproj

    r7870 r7925  
    131131    </Compile> 
    132132  </ItemGroup> 
     133  <ItemGroup> 
     134    <Compile Include="Jump11.wav"> 
     135      <Name>Jump11</Name> 
     136      <Importer>WavImporter</Importer> 
     137      <Processor>SoundEffectProcessor</Processor> 
     138    </Compile> 
     139  </ItemGroup> 
     140  <ItemGroup> 
     141    <Compile Include="mine.png"> 
     142      <Name>mine</Name> 
     143      <Importer>TextureImporter</Importer> 
     144      <Processor>TextureProcessor</Processor> 
     145    </Compile> 
     146  </ItemGroup> 
    133147  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    134148  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragoreContent/kentta1.txt

    r7872 r7925  
    1414..#..##......##..##..*********...... 
    1515..................***********....... 
    16 ......z..#.N.......************...O. 
     16......z..#.N...._..************...O. 
    1717#################################### 
Note: See TracChangeset for help on using the changeset viewer.