Changeset 6777 for 2015/27


Ignore:
Timestamp:
2015-07-03 11:22:48 (8 years ago)
Author:
lupepura
Message:

Valmis!

Location:
2015/27/LukaP
Files:
24 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.cs

    r6754 r6777  
    2121    Image Maalinkuva = LoadImage("Maali"); 
    2222    Image taustaKuva = LoadImage("Background 3"); 
     23    Image maankuva = LoadImage("Blokki"); 
    2324 
    2425     
     
    4041 
    4142    SoundEffect maaliAani = LoadSoundEffect("maaliAani"); 
     43    SoundEffect hyppyAani = LoadSoundEffect("HyppyAani"); 
     44    SoundEffect KeraaKolikko = LoadSoundEffect("KeraaKolikko"); 
     45    SoundEffect VihuKuolee = LoadSoundEffect("VihuKuolee"); 
     46    SoundEffect VoittoAani = LoadSoundEffect("VoittoAani"); 
     47    SoundEffect VihuKuolemaAani = LoadSoundEffect("VihuKuolemaAani"); 
     48    SoundEffect TippuAani = LoadSoundEffect("TippuAani"); 
    4249 
    4350    public override void Begin() 
     
    7380        taso.Position = paikka; 
    7481        taso.Color = Color.Green; 
     82        taso.Image = maankuva; 
    7583        Add(taso); 
    7684    } 
     
    118126            MessageDisplay.Add("FAIL!"); 
    119127            Timer.SingleShot(1.0, SeuraavaKentta); 
     128            TippuAani.Play(); 
    120129            //ClearControls(); 
    121130        }); 
     
    151160    { 
    152161        hahmo.Jump(nopeus); 
     162        hyppyAani.Play(); 
    153163    } 
    154164 
    155165    void TormaaKolikkoon(PhysicsObject hahmo, PhysicsObject tahti) 
    156166    { 
    157         maaliAani.Play(); 
     167        KeraaKolikko.Play(); 
    158168        MessageDisplay.Add("1X Kolikko Kerätty!"); 
    159169        tahti.Destroy(); 
     
    171181            pahis.Destroy(); 
    172182            (pelaaja as PlatformCharacter).ForceJump(nopeus * 4); 
     183            VihuKuolee.Play(); 
     184            MessageDisplay.Add("Tuhosit Puolustajan"); 
    173185        } 
    174186        else 
    175187        { 
    176             pelaaja.Destroy(); 
     188            pelaaja.Destroy();            
    177189            MessageDisplay.Add("FAIL!"); 
     190            VihuKuolemaAani.Play(); 
    178191            Timer.SingleShot(1.0, SeuraavaKentta); 
    179         } 
     192        }  
    180193    } 
    181194 
     
    209222 
    210223        Label pisteNaytto = new Label(); 
    211         pisteNaytto.X = Screen.Left + 10; 
    212         pisteNaytto.Y = Screen.Top - 10; 
     224        pisteNaytto.X = Screen.Left + 100; 
     225        pisteNaytto.Y = Screen.Top - 100; 
    213226        pisteNaytto.TextColor = Color.Black; 
    214         pisteNaytto.Color = Color.White; 
     227        pisteNaytto.Color = Color.Blue; 
    215228        pisteNaytto.Title = "kolikot"; 
    216229 
     
    249262        //Kasvatetaan kenttänumeroa yhdellä ja siirrytään seuraavaan kenttään: 
    250263        kenttaNro++; 
     264        VoittoAani.Play(); 
    251265        SeuraavaKentta(); 
    252266    } 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.csproj.Debug.cachefile

    r6754 r6777  
    1313Content\kentta4.xnb 
    1414Content\Piikki.xnb 
     15Content\HyppyAani.xnb 
     16Content\KeraaKolikko.xnb 
     17Content\VihuKuolee.xnb 
     18Content\Background 4.xnb 
     19Content\VoittoAani.xnb 
     20Content\Blokki.xnb 
     21Content\VihuKuolemaAani.xnb 
     22Content\TippuAani.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/ContentPipeline-{2119C4D2-AF14-42FC-976F-6011121F8356}.xml

    r6754 r6777  
    108108      <Options>None</Options> 
    109109      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 3.xnb</Output> 
    110       <Time>2015-07-02T14:20:58.3970756+03:00</Time> 
     110      <Time>2015-07-03T10:17:39.9617022+03:00</Time> 
    111111    </Item> 
    112112    <Item> 
     
    127127      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb</Output> 
    128128      <Time>2015-07-02T14:34:33.9672778+03:00</Time> 
     129    </Item> 
     130    <Item> 
     131      <Source>HyppyAani.wav</Source> 
     132      <Name>HyppyAani</Name> 
     133      <Importer>WavImporter</Importer> 
     134      <Processor>SoundEffectProcessor</Processor> 
     135      <Options>None</Options> 
     136      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\HyppyAani.xnb</Output> 
     137      <Time>2015-07-03T09:45:26.3732022+03:00</Time> 
     138    </Item> 
     139    <Item> 
     140      <Source>KeraaKolikko.wav</Source> 
     141      <Name>KeraaKolikko</Name> 
     142      <Importer>WavImporter</Importer> 
     143      <Processor>SoundEffectProcessor</Processor> 
     144      <Options>None</Options> 
     145      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\KeraaKolikko.xnb</Output> 
     146      <Time>2015-07-03T09:48:10.7712022+03:00</Time> 
     147    </Item> 
     148    <Item> 
     149      <Source>VihuKuolee.wav</Source> 
     150      <Name>VihuKuolee</Name> 
     151      <Importer>WavImporter</Importer> 
     152      <Processor>SoundEffectProcessor</Processor> 
     153      <Options>None</Options> 
     154      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolee.xnb</Output> 
     155      <Time>2015-07-03T09:48:13.6112022+03:00</Time> 
     156    </Item> 
     157    <Item> 
     158      <Source>Background 4.png</Source> 
     159      <Name>Background 4</Name> 
     160      <Importer>TextureImporter</Importer> 
     161      <Processor>TextureProcessor</Processor> 
     162      <Options>None</Options> 
     163      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 4.xnb</Output> 
     164      <Time>2015-07-03T10:06:32.5767022+03:00</Time> 
     165    </Item> 
     166    <Item> 
     167      <Source>VoittoAani.wav</Source> 
     168      <Name>VoittoAani</Name> 
     169      <Importer>WavImporter</Importer> 
     170      <Processor>SoundEffectProcessor</Processor> 
     171      <Options>None</Options> 
     172      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VoittoAani.xnb</Output> 
     173      <Time>2015-07-03T10:23:21.2347022+03:00</Time> 
     174    </Item> 
     175    <Item> 
     176      <Source>Blokki.png</Source> 
     177      <Name>Blokki</Name> 
     178      <Importer>TextureImporter</Importer> 
     179      <Processor>TextureProcessor</Processor> 
     180      <Options>None</Options> 
     181      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Blokki.xnb</Output> 
     182      <Time>2015-07-03T10:39:20.8307022+03:00</Time> 
     183    </Item> 
     184    <Item> 
     185      <Source>VihuKuolemaAani.wav</Source> 
     186      <Name>VihuKuolemaAani</Name> 
     187      <Importer>WavImporter</Importer> 
     188      <Processor>SoundEffectProcessor</Processor> 
     189      <Options>None</Options> 
     190      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolemaAani.xnb</Output> 
     191      <Time>2015-07-03T10:58:14.1337022+03:00</Time> 
     192    </Item> 
     193    <Item> 
     194      <Source>TippuAani.wav</Source> 
     195      <Name>TippuAani</Name> 
     196      <Importer>WavImporter</Importer> 
     197      <Processor>SoundEffectProcessor</Processor> 
     198      <Options>None</Options> 
     199      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\TippuAani.xnb</Output> 
     200      <Time>2015-07-03T11:06:58.7037022+03:00</Time> 
    129201    </Item> 
    130202    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/LukanPeli.csproj.FileListAbsolute.txt

    r6754 r6777  
    2121C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb 
    2222C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb 
     23C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\HyppyAani.xnb 
     24C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\KeraaKolikko.xnb 
     25C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolee.xnb 
     26C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 4.xnb 
     27C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VoittoAani.xnb 
     28C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Blokki.xnb 
     29C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\VihuKuolemaAani.xnb 
     30C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\TippuAani.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/cachefile-{2119C4D2-AF14-42FC-976F-6011121F8356}-targetpath.txt

    r6754 r6777  
    1313Content\kentta4.xnb 
    1414Content\Piikki.xnb 
     15Content\HyppyAani.xnb 
     16Content\KeraaKolikko.xnb 
     17Content\VihuKuolee.xnb 
     18Content\Background 4.xnb 
     19Content\VoittoAani.xnb 
     20Content\Blokki.xnb 
     21Content\VihuKuolemaAani.xnb 
     22Content\TippuAani.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/LukanPeliContent.contentproj

    r6754 r6777  
    139139    </Compile> 
    140140  </ItemGroup> 
     141  <ItemGroup> 
     142    <Compile Include="HyppyAani.wav"> 
     143      <Name>HyppyAani</Name> 
     144      <Importer>WavImporter</Importer> 
     145      <Processor>SoundEffectProcessor</Processor> 
     146    </Compile> 
     147  </ItemGroup> 
     148  <ItemGroup> 
     149    <Compile Include="KeraaKolikko.wav"> 
     150      <Name>KeraaKolikko</Name> 
     151      <Importer>WavImporter</Importer> 
     152      <Processor>SoundEffectProcessor</Processor> 
     153    </Compile> 
     154  </ItemGroup> 
     155  <ItemGroup> 
     156    <Compile Include="VihuKuolee.wav"> 
     157      <Name>VihuKuolee</Name> 
     158      <Importer>WavImporter</Importer> 
     159      <Processor>SoundEffectProcessor</Processor> 
     160    </Compile> 
     161  </ItemGroup> 
     162  <ItemGroup> 
     163    <Compile Include="Background 4.png"> 
     164      <Name>Background 4</Name> 
     165      <Importer>TextureImporter</Importer> 
     166      <Processor>TextureProcessor</Processor> 
     167    </Compile> 
     168  </ItemGroup> 
     169  <ItemGroup> 
     170    <Compile Include="VoittoAani.wav"> 
     171      <Name>VoittoAani</Name> 
     172      <Importer>WavImporter</Importer> 
     173      <Processor>SoundEffectProcessor</Processor> 
     174    </Compile> 
     175  </ItemGroup> 
     176  <ItemGroup> 
     177    <Compile Include="Blokki.png"> 
     178      <Name>Blokki</Name> 
     179      <Importer>TextureImporter</Importer> 
     180      <Processor>TextureProcessor</Processor> 
     181    </Compile> 
     182  </ItemGroup> 
     183  <ItemGroup> 
     184    <Compile Include="VihuKuolemaAani.wav"> 
     185      <Name>VihuKuolemaAani</Name> 
     186      <Importer>WavImporter</Importer> 
     187      <Processor>SoundEffectProcessor</Processor> 
     188    </Compile> 
     189  </ItemGroup> 
     190  <ItemGroup> 
     191    <Compile Include="TippuAani.wav"> 
     192      <Name>TippuAani</Name> 
     193      <Importer>WavImporter</Importer> 
     194      <Processor>SoundEffectProcessor</Processor> 
     195    </Compile> 
     196  </ItemGroup> 
    141197  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    142198  <!--  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.