Changeset 6459


Ignore:
Timestamp:
2015-06-26 12:13:50 (4 years ago)
Author:
tihaapas
Message:

triiidto

Location:
2015/26/TimoH
Files:
6 added
1 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli.cs

    r6375 r6459  
    11using System; 
    2 using System.Collections.Generic; 
     2using System.Collections.Generic;tf 
    33using Jypeli; 
    44using Jypeli.Assets; 
     
    1212    const double hyppyNopeus = 1000; 
    1313    const int RUUDUN_KOKO = 40; 
    14     
     14    const int DOGE_SPAWNIT = 8; 
     15    int doge_spawni; 
     16    int nykyinen_doge_spawni; 
    1517 
    1618    PlatformCharacter pelaaja1; 
     
    2022    Image taustakuva = LoadImage("maxresdefault"); 
    2123 
    22     SoundEffect maaliAani = LoadSoundEffect("maali"); 
     24    SoundEffect maaliAani = LoadSoundEffect("randomize2"); 
    2325 
    2426    public override void Begin() 
     
    2729         
    2830        Gravity = new Vector(0, -1000); 
     31         
     32        nykyinen_doge_spawni = 1; 
     33        doge_spawni = RandomGen.NextInt(1, DOGE_SPAWNIT); 
    2934 
    3035        LuoKentta(); 
    3136        LisaaNappaimet(); 
    32          
    33  
    3437 
    3538        Camera.Follow(pelaaja1); 
     
    7275    void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 
    7376    { 
    74         pelaaja1 = new PlatformCharacter(leveys, korkeus); 
    75         pelaaja1.Position = paikka; 
    76         pelaaja1.Mass = 1.0; 
    77         pelaaja1.Image = pelaajanKuva; 
    78         AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    79         Add(pelaaja1); 
     77        if (nykyinen_doge_spawni == doge_spawni) 
     78        { 
     79            nykyinen_doge_spawni = 0; 
     80            pelaaja1 = new PlatformCharacter(leveys, korkeus); 
     81            pelaaja1.Position = paikka; 
     82            pelaaja1.Mass = 50.0; 
     83            pelaaja1.Image = pelaajanKuva; 
     84            AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     85            Add(pelaaja1); 
     86        } 
     87        else 
     88        { 
     89            if (nykyinen_doge_spawni != 0) 
     90            { 
     91                nykyinen_doge_spawni++; 
     92            } 
     93        } 
    8094    } 
    8195 
     
    112126    void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 
    113127    { 
    114         //maaliAani.Play(); 
    115         MessageDisplay.Add("sait yhden weed!"); 
     128        maaliAani.Play(); 
     129        MessageDisplay.Add("keräsit weedin?"); 
    116130        tahti.Destroy(); 
    117131        Explosion rajahdus = new Explosion(tahti.Width); 
    118         //rajahdus.Sound =  
     132        rajahdus.Sound = maaliAani; 
    119133        rajahdus.Position = tahti.Position; 
    120134        Add(rajahdus); 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli.csproj.Debug.cachefile

    r6259 r6459  
    44Content\unnamed.xnb 
    55Content\kentta1.xnb 
     6Content\Randomize2.xnb 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/obj/x86/Debug/ContentPipeline-{ED25AC30-B3E1-4214-B22C-FBA6950349B1}.xml

    r6375 r6459  
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    47       <Time>2015-06-25T14:05:50.0937409+03:00</Time> 
     47      <Time>2015-06-26T09:49:11.8147102+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>Randomize2.wav</Source> 
     51      <Name>Randomize2</Name> 
     52      <Importer>WavImporter</Importer> 
     53      <Processor>SoundEffectProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\bin\x86\Debug\Content\Randomize2.xnb</Output> 
     56      <Time>2015-06-26T09:00:13.8997102+03:00</Time> 
    4857    </Item> 
    4958    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/obj/x86/Debug/Dogen_mlg_peli.csproj.FileListAbsolute.txt

    r6259 r6459  
    2727C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\obj\x86\Debug\Dogen_mlg_peli.exe 
    2828C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\obj\x86\Debug\Dogen_mlg_peli.pdb 
     29C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\bin\x86\Debug\Content\Randomize2.xnb 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/obj/x86/Debug/cachefile-{ED25AC30-B3E1-4214-B22C-FBA6950349B1}-targetpath.txt

    r6259 r6459  
    44Content\unnamed.xnb 
    55Content\kentta1.xnb 
     6Content\Randomize2.xnb 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peliContent/Dogen_mlg_peliContent.contentproj

    r6259 r6459  
    7878    </Compile> 
    7979  </ItemGroup> 
     80  <ItemGroup> 
     81    <Compile Include="Randomize2.wav"> 
     82      <Name>Randomize2</Name> 
     83      <Importer>WavImporter</Importer> 
     84      <Processor>SoundEffectProcessor</Processor> 
     85    </Compile> 
     86  </ItemGroup> 
    8087  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    8188  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peliContent/kentta1.txt

    r6375 r6459  
    11ooooooooooooooooooooooooooooooooooooooo 
     2oN..........*..N.*..................N.o 
     3o...........o....o....................o 
    24o.....................................o 
    3 o.....................................o 
    4 o.....................................o 
    5 o.....................................o 
    6 o.....................................o 
     5o...**.N................**............o 
     6o..ooooo................oo............o 
    77o.....................................o 
    88o.....................................o 
     
    2020o......**........oo..........oo.......o 
    2121o......oo.............................o 
    22 o*........**.........**..........**...o 
     22o*N.......**N........**N.........**...o 
    2323ooo........oo.........oo..........oo..o 
    2424o...**......................**........o 
    2525o...oo......................oo........o 
    26 o.............N.......................o 
     26o................N....................o 
    2727ooooooooooooooooooooooooooooooooooooooo 
  • 2015/26/TimoH/My Warfare 2 Launcher/bin/settings.dat

    r6375 r6459  
    44<_x003C_OnkoFullscreen_x003E_k__BackingField>true</_x003C_OnkoFullscreen_x003E_k__BackingField> 
    55<_x003C_OnkoAntialiasing_x003E_k__BackingField>true</_x003C_OnkoAntialiasing_x003E_k__BackingField> 
    6 <_x003C_OnkoPelaajalla1Lasertahtainta_x003E_k__BackingField>false</_x003C_OnkoPelaajalla1Lasertahtainta_x003E_k__BackingField> 
     6<_x003C_OnkoPelaajalla1Lasertahtainta_x003E_k__BackingField>true</_x003C_OnkoPelaajalla1Lasertahtainta_x003E_k__BackingField> 
    77<_x003C_OnkoPelaajalla2Lasertahtainta_x003E_k__BackingField>true</_x003C_OnkoPelaajalla2Lasertahtainta_x003E_k__BackingField> 
    88<_x003C_KayttajaNimi_x003E_k__BackingField id="ref-3">N00b</_x003C_KayttajaNimi_x003E_k__BackingField> 
Note: See TracChangeset for help on using the changeset viewer.