Changeset 3674 for 2012/27


Ignore:
Timestamp:
2012-07-06 12:47:42 (11 years ago)
Author:
mikrats
Message:

Talletus.

Location:
2012/27/MikaelK
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/MikaelK/hailstorm/hailstorm/hailstormContent/hailstormContent.contentproj

    r3608 r3674  
    9494    </Compile> 
    9595  </ItemGroup> 
     96  <ItemGroup> 
     97    <Compile Include="Eskimo.png"> 
     98      <Name>Eskimo</Name> 
     99      <Importer>TextureImporter</Importer> 
     100      <Processor>TextureProcessor</Processor> 
     101    </Compile> 
     102  </ItemGroup> 
    96103  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    97104  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2012/27/MikaelK/hailstorm/hailstorm/hailstormContent/kentta1.txt

    r3608 r3674  
    44                          
    55                          
    6                           
    7                           
    8 #                         
     6                          
     7 
     8                                        # 
    99#                                       # 
    10 #                                       #   
    11 ##                                      # 
    12 ##                                      # 
    13 ##                   #                  # 
    14 ###      ##         ###        #        # 
    15 ###       #        #####       #        # 
    16 ###      N#       #######      #        # 
     10#                                       # 
     11#                                       # 
     12#                               #       # 
     13##                   #          #       # 
     14##       ##         ###         #       # 
     15###       #        #####        #       # 
     16###      N#       #######       #       # 
    1717############  ######################  ### 
    1818           #  #                    #  # 
  • 2012/27/MikaelK/hailstorm/hailstorm/raekuuro.cs

    r3608 r3674  
    99public class hailstorm : PhysicsGame 
    1010{ 
    11     const double nopeus = 280; 
     11    const double nopeus = 300; 
    1212    const double hyppyNopeus = 1100; 
    1313    const int RUUDUN_KOKO = 40; 
     14 
    1415    Image Talvi = LoadImage ("Talvi"); 
    1516    PlatformCharacter pelaaja1; 
    1617 
    17     Image pelaajanKuva = LoadImage("meikäläinen"); 
     18    Image pelaajanKuva = LoadImage("Eskimo"); 
    1819    Image tahtiKuva = LoadImage("tahti"); 
    1920 
     
    2324    public override void Begin() 
    2425    { 
    25       if (DataStorage.Exists("pisteet.xml")) 
     26       
     27        if (DataStorage.Exists("pisteet.xml")) 
    2628      topLista = DataStorage.Load<ScoreList>(topLista, "pisteet.xml"); 
    2729      AlkuValikko(); 
     
    8587        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Liikuta, "Pelaaja liikkuu oikealle", pelaaja1, nopeus); 
    8688        ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    87  
    88         ControllerOne.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    8989        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    9090    } 
     
    153153    { 
    154154        Timer ajastin = new Timer(); 
    155         ajastin.Interval = 0.2; 
     155        ajastin.Interval = 0.4; 
    156156        ajastin.Timeout += Luorae; 
    157157        ajastin.Start(); 
     
    162162   { 
    163163       Timer ajastin2 = new Timer(); 
    164        ajastin2.Interval = 5.0; 
     164       ajastin2.Interval = 2.0; 
    165165       ajastin2.Timeout += delegate{  
    166            LuoTahti(RandomGen.NextVector(Level.Left,0,Level.Right,100),RUUDUN_KOKO,RUUDUN_KOKO );  
     166       LuoTahti(RandomGen.NextVector(Level.Left,0,Level.Right,100),RUUDUN_KOKO,RUUDUN_KOKO );  
    167167       }; 
    168168       ajastin2.Start(); 
     
    171171    void AlkuValikko() 
    172172   { 
     173       ClearAll(); 
    173174       MultiSelectWindow AlkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
    174175      "Aloita peli", "Parhaat pisteet", "Lopeta"); 
     
    195196      ajastin(); 
    196197      ajastin2(); 
     198 
    197199      break; 
    198200      case 1: 
     201      HighScoreWindow topIkkuna = new HighScoreWindow( 
     202     "Parhaat pisteet", 
     203     topLista ); 
     204     topIkkuna.Closed += TallennaPisteet; 
     205     Add( topIkkuna ); 
     206 
    199207      break; 
    200208      case 2: 
     
    211219        Layers[-3].RelativeTransition = new Vector(0.5, 0.5);    
    212220    } 
     221 
    213222    void TallennaPisteet(Window sender) 
    214223    { 
    215224        DataStorage.Save<ScoreList>(topLista, "pisteet.xml"); 
     225        AlkuValikko(); 
    216226    } 
    217227 
Note: See TracChangeset for help on using the changeset viewer.