Changeset 1201 for 2010


Ignore:
Timestamp:
2010-07-08 14:57:51 (13 years ago)
Author:
attakorh
Message:
 
Location:
2010/27/attakorh/Pallerot
Files:
8 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • 2010/27/attakorh/Pallerot/Content/Content.contentproj

    r1182 r1201  
    2323      <Importer>TextureImporter</Importer> 
    2424      <Processor>TextureProcessor</Processor> 
    25     </Compile> 
    26   </ItemGroup> 
    27   <ItemGroup> 
    28     <Compile Include="maali.wav"> 
    29       <Name>maali</Name> 
    30       <Importer>WavImporter</Importer> 
    31       <Processor>SoundEffectProcessor</Processor> 
    3225    </Compile> 
    3326  </ItemGroup> 
     
    7568    </Compile> 
    7669  </ItemGroup> 
     70  <ItemGroup> 
     71    <Compile Include="maali.png"> 
     72      <Name>maali</Name> 
     73      <Importer>TextureImporter</Importer> 
     74      <Processor>TextureProcessor</Processor> 
     75    </Compile> 
     76  </ItemGroup> 
     77  <ItemGroup> 
     78    <Compile Include="laatta1.png"> 
     79      <Name>laatta1</Name> 
     80      <Importer>TextureImporter</Importer> 
     81      <Processor>TextureProcessor</Processor> 
     82    </Compile> 
     83  </ItemGroup> 
    7784  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7885  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2010/27/attakorh/Pallerot/Peli.cs

    r1182 r1201  
    3434        MessageDisplay.Add("Hypi tornin päälle!"); 
    3535        MessageDisplay.Add("Avaa ohjeet painamalla F1."); 
    36         Level.Background.CreateStars(500); 
    37  
     36        Level.Background.CreateGradient(Color.White, Color.DarkGray); 
    3837 
    3938        
     
    6564        ruudut['s'] = Sivu; 
    6665        ruudut['p'] = LuoPiikki; 
     66        ruudut['l'] = Laatta; 
    6767 
    6868        ruudut.Insert(ruudunLeveys, ruudunKorkeus); 
     
    9595        maali.Tag = "maali"; 
    9696        maali.IgnoresCollisionResponse = true; 
    97         maali.X = 30; 
    98         maali.Y = -60; 
    99         maali.Image = LoadImage("tahti"); 
     97        maali.X = Level.Left; 
     98        maali.Y = 500; 
     99        maali.Image = LoadImage("maali"); 
    100100        Add(maali); 
    101101    } 
     
    152152        if (kohde.Tag.ToString() == "maali") 
    153153        { 
    154             PlaySound("maali"); 
    155154            seuraavaKentta(); 
    156155            MessageDisplay.Add("Jees! Pääsit läpi kentän " + kenttaNro ); 
     156            ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 5.9); 
    157157        } 
    158158 
     
    165165            MessageDisplay.Add("Kuolit! Aloita alusta!"); 
    166166            MessageDisplay.Add("Avaa ohjeet painamalla F1."); 
    167              
    168             ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 0.4); 
    169             Level.Background.Image = LoadImage("tausta"); 
     167            Level.Background.CreateGradient(Color.White, Color.DarkGray); 
     168            ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 1.5); 
    170169 
    171170        } 
    172171    } 
    173172 
     173    PhysicsObject Laatta() 
     174    { 
     175        PhysicsObject laatta = PhysicsObject.CreateStaticObject(50.0, 25.0); 
     176        laatta.Image = LoadImage("laatta1"); 
     177        return laatta; 
     178    } 
     179     
     180 
    174181} 
  • 2010/27/attakorh/Pallerot/kentta1.txt

    r1182 r1201  
    11s=================================s 
    2 s                                 s 
    3 s                                 s 
    4 s                                 s 
    5 s                                 s 
    6 s                                 s 
    7 s                                 s 
    8 s                                 s 
    9 s                                 s 
    10 s                                 s 
    11 s                                 s 
    12 s                                 s 
    13 s                                 s 
    14 s                =  =             s 
    15 s                    =            s 
    16 s                         p p p   s 
    17 s                         = = =   s 
    18                   =            s 
    19 spppppppppppp  1   ppppppppppppppps 
     2s      s                          s 
     3s      s                          s 
     4s      s                          s 
     5s      s                          s 
     6spppppps                          s 
     7s======s==========================s 
     8s      s                          s 
     9s      s  ========================s 
     10s        =                        s 
     11s     ls=                         s 
     12sl     s                          s 
     13s      s                          s 
     14sl     s     =   =  =             s 
     15s      s  p p         =           s 
     16sl     s  s s              p p p  s 
     17s         s s              = = =  s 
     18=  === s s        ==           s 
     19spppppppppsps  1   ppppppppppppppps 
    2020s=================================s 
Note: See TracChangeset for help on using the changeset viewer.