Changeset 4157 for 2013/24


Ignore:
Timestamp:
2013-06-14 12:40:02 (10 years ago)
Author:
sasyvane
Message:

Talletus.

Location:
2013/24/SamiS/Colajump/Colajump
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • 2013/24/SamiS/Colajump/Colajump/Colajump/Colajump.cs

    r4128 r4157  
    2222    Image Ranskiskuva = LoadImage("ranskalaiset"); 
    2323    Image HamppariKuva = LoadImage("pixel_burger uusi"); 
    24     Image taustakuva = LoadImage("mountain-lion-taustakuva"); 
     24    Image taustakuva = LoadImage("forest"); 
    2525    Image Maalikuva = LoadImage("Maali"); 
    2626 
    2727    SoundEffect maaliAani = LoadSoundEffect("Aani"); 
     28    SoundEffect nauru = LoadSoundEffect("nauru"); 
     29 
    2830    
    2931    public override void Begin() 
     
    3133 
    3234        MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
    33         "Aloita peli", "Parhaat pisteet", "Lopeta"); 
     35        "Aloita peli", "Lopeta"); 
    3436        Add(alkuValikko); 
    3537        alkuValikko.AddItemHandler(0, AloitaPeli); 
    36         alkuValikko.AddItemHandler(1, ParhaatPisteet); 
    37         alkuValikko.AddItemHandler(2, Exit); 
    38         alkuValikko.DefaultCancel = 3; 
     38        alkuValikko.AddItemHandler(1, Exit); 
     39        alkuValikko.DefaultCancel = 2; 
    3940        alkuValikko.Color = Color.Emerald; 
    4041    } 
     
    101102    void AloitaPeli() 
    102103    { 
    103         LisaaNappaimet(); 
    104  
    105104        LuoPisteLaskuri(); 
     105 
     106        MediaPlayer.Play("tausta"); 
    106107 
    107108        SeuraavaKentta(); 
     
    162163        Maali.IgnoresCollisionResponse = true; 
    163164        Maali.Position = paikka; 
     165        Maali.Color = Color.Aqua; 
    164166        //Maali.Image = Maalikuva; 
    165167        Maali.Tag = "Maali"; 
     
    226228        ajastin.Timeout += AloitaAlusta; 
    227229        ajastin.Start(1); 
     230 
     231        nauru.Play(); 
    228232    } 
    229233    void TormaaMaaliin(PhysicsObject pelaaja, PhysicsObject maali) 
     
    292296        rajahdys.Force = 10000; 
    293297        pelaaja1.Destroy(); 
     298        SoundEffect nauru = LoadSoundEffect("nauru"); 
     299        nauru.Play(); 
     300 
     301 
    294302         
    295303      
     
    339347        //LuoKentta(); 
    340348        SeuraavaKentta(); 
    341         LisaaNappaimet(); 
    342         LuoPisteLaskuri(); 
    343  
    344         hyppyNopeus = 500; 
    345349         
    346350    } 
     
    353357        else if (KenttaNro == 2) LuoKentta("kentta2"); 
    354358        else if (KenttaNro == 3) LuoKentta("kentta3"); 
    355         else if (KenttaNro > 3) Exit(); 
    356  
    357         Gravity = new Vector(0, -1500); 
     359        else if (KenttaNro == 4) LuoKentta("kentta4"); 
     360        else if (KenttaNro > 4) Exit(); 
     361 
     362      
     363 
     364        Gravity = new Vector(0, -1200); 
    358365 
    359366        LisaaNappaimet(); 
     367        LuoPisteLaskuri(); 
    360368 
    361369        Camera.Follow(pelaaja1); 
  • 2013/24/SamiS/Colajump/Colajump/ColajumpContent/ColajumpContent.contentproj

    r4128 r4157  
    131131    </Compile> 
    132132  </ItemGroup> 
     133  <ItemGroup> 
     134    <Compile Include="kentta3.txt"> 
     135      <Name>kentta3</Name> 
     136      <Importer>TextFileImporter</Importer> 
     137      <Processor>TextFileContentProcessor</Processor> 
     138    </Compile> 
     139  </ItemGroup> 
     140  <ItemGroup> 
     141    <Compile Include="forest.jpg"> 
     142      <Name>forest</Name> 
     143      <Importer>TextureImporter</Importer> 
     144      <Processor>TextureProcessor</Processor> 
     145    </Compile> 
     146  </ItemGroup> 
     147  <ItemGroup> 
     148    <Compile Include="nauru.wav"> 
     149      <Name>nauru</Name> 
     150      <Importer>WavImporter</Importer> 
     151      <Processor>SoundEffectProcessor</Processor> 
     152    </Compile> 
     153  </ItemGroup> 
     154  <ItemGroup> 
     155    <Compile Include="tausta.mp3"> 
     156      <Name>tausta</Name> 
     157      <Importer>Mp3Importer</Importer> 
     158      <Processor>SongProcessor</Processor> 
     159    </Compile> 
     160  </ItemGroup> 
     161  <ItemGroup> 
     162    <Compile Include="kentta4.txt"> 
     163      <Name>kentta4</Name> 
     164      <Importer>TextFileImporter</Importer> 
     165      <Processor>TextFileContentProcessor</Processor> 
     166    </Compile> 
     167  </ItemGroup> 
    133168  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    134169  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2013/24/SamiS/Colajump/Colajump/ColajumpContent/kentta1.txt

    r4128 r4157  
    66                                                                   
    77                                                                   
    8                                                                                                    RR                                               
    9                                                                                                                                                  RR                                                                                        
    10                                                                                         ##         ##          ###                           ##      ##           R        
    11                                                                             PPPPPPPPPPPP##PPPPPPPPP##PPPPPPPPPP###PPPPPPPPPPP  PPP  PPPPPPPPP##PPPPPP##PPPPPPPPPP   PPPPPPPPPP    PPPPPPPPP                                                                 
    12                                                                   ##########################################################################################################################                                                                                                                                                
     8                                                                                                                                        
     9                                                                                                                                                                        
     10                                                                                              
    1311 
    1412                                                                                                   
    1513                                                                                                                                                                                                                                                            
    1614                                  PP  
    17   N                M           ############                                R                                                                                                                   M 
    18             PP                                                                                                                                                                               ####             
     15    N                            ############                               R                                                                                                              
     16            PP                                                                                                                                                                                        
    1917####################                              R                    ######                                                       ##                                      R                      
    20                                                           ########                                                 R                                                                      
     18                                                          ########                                                 R                                                                     M 
    2119                                              #######                                                                     ###                                                             
    2220                                                                                                  PPPP                                      C                     PP    PPP   PP                                                             
  • 2013/24/SamiS/Colajump/Colajump/ColajumpContent/kentta2.txt

    r4128 r4157  
    1717 
    1818 
    19                                                                ###### 
    20    N       C                                            PP  
    21 #############                   C                 ####### 
    22                     R         ######        PP 
     19                                                               ######               R            
     20   N                            C                    PP                                         
     21#############        R                          #######                                                      
     22                              ######       PP                                ###                   
    2323                  ######                ##### 
     24                                                                                                                                      
     25                                                                                          C               
    2426 
    25  
    26  
    27  
    28  
    29  
    30  
    31  
    32  
    33  
    34  
    35 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 
     27                                                                                                                                                                                          
     28                                                                                                                       
     29                                                                          PPPPPPPP        # 
     30                                                                          ######## 
     31                                                                                                 
     32                                                                                            
     33                                                                               M         
     34                                                                                            
     35PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP#######PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 
    3636##################################################################################################################################################################################################### 
Note: See TracChangeset for help on using the changeset viewer.