Changeset 6754


Ignore:
Timestamp:
2015-07-02 14:45:17 (4 years ago)
Author:
lupepura
Message:

K V

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

Legend:

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

    r6732 r6754  
    99public class LukanPeli : PhysicsGame 
    1010{ 
    11     const double nopeus = 200; 
     11     
     12    const double nopeus = 250; 
    1213    const double hyppyNopeus = 850; 
    1314    const int RUUDUN_KOKO = 40; 
     
    1920    Image Vihunkuva = LoadImage("Vihu"); 
    2021    Image Maalinkuva = LoadImage("Maali"); 
     22    Image taustaKuva = LoadImage("Background 3"); 
     23 
     24     
     25 
    2126 
    2227 
     
    2429    IntMeter pistelaskuri; 
    2530    int kenttaNro = 1; 
     31     
    2632 
    2733     
     
    3743    public override void Begin() 
    3844    { 
    39          
    40  
    41         SeuraavaKentta(); 
     45 
     46 
     47        LuoAlkuValikko(); 
    4248        
    4349    } 
     
    5157        kentta.SetTileMethod('1', LisaaKolo); 
    5258        kentta.SetTileMethod('V', LisaaVihu); 
    53         kentta.SetTileMethod('M',LisaaMaali); 
     59        kentta.SetTileMethod('M', LisaaMaali); 
    5460        IsFullScreen = true; 
     61         
     62         
    5563        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    56         Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     64       // Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     65          Level.Background.Image = taustaKuva; 
     66          Level.Background.TileToLevel(); 
    5767 
    5868    } 
     
    106116 
    107117            a.Destroy(); 
     118            MessageDisplay.Add("FAIL!"); 
     119            Timer.SingleShot(1.0, SeuraavaKentta); 
    108120            //ClearControls(); 
    109121        }); 
     
    163175        { 
    164176            pelaaja.Destroy(); 
     177            MessageDisplay.Add("FAIL!"); 
     178            Timer.SingleShot(1.0, SeuraavaKentta); 
    165179        } 
    166180    } 
     
    179193 
    180194        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
    181         tasoAivot.Speed = 50; 
     195        tasoAivot.Speed = 250; 
    182196        Vihu.Brain = tasoAivot; 
    183197 
     
    190204 
    191205 
    192  
    193     void Luopistelaskuri() 
     206   void Luopistelaskuri() 
    194207    { 
    195208         pistelaskuri = new IntMeter(0); 
     
    248261   void LuoAlkuValikko() 
    249262   { 
    250     MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", "Aloita Peli", "ParhaatPisteet", "Lopeta"); 
     263    MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", "Aloita Peli", "Lopeta"); 
    251264 
    252265     Add(alkuValikko); 
     
    254267 
    255268     alkuValikko.AddItemHandler(0, AloitaPeli); 
    256      alkuValikko.AddItemHandler(1, ParhaatPisteet);  
    257      alkuValikko.AddItemHandler(2, Exit); 
    258      alkuValikko.DefaultCancel = 3; 
     269     alkuValikko.AddItemHandler(1, Exit); 
     270     alkuValikko.DefaultCancel = 1; 
    259271     alkuValikko.Color = Color.Red; 
    260272    
     
    264276   void AloitaPeli() 
    265277   { 
    266       
     278       SeuraavaKentta(); 
    267279   } 
    268280 
    269    void ParhaatPisteet() 
     281    
     282    
     283 
     284 
     285 
     286 
     287    
     288 
     289   void luotausta() 
    270290   { 
    271  
     291       Level.Background.Image = taustaKuva; 
    272292   } 
    273    public class Peli : Game 
    274    { 
    275        EasyHighScore topLista = new EasyHighScore(); 
    276  
    277  
    278  
    279  
     293 
     294 
     295 
     296 
     297 
     298    
    280299   } 
    281     
    282    } 
    283  
    284  
    285  
    286  
    287  
    288  
    289  
    290  
    291  
    292  
    293  
     300 
     301 
     302 
     303 
     304 
     305 
     306 
     307 
     308 
     309 
     310 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.csproj.Debug.cachefile

    r6732 r6754  
    88Content\Maali.xnb 
    99Content\maaliAani.xnb 
     10Content\Background.xnb 
     11Content\Background 2.xnb 
     12Content\Background 3.xnb 
     13Content\kentta4.xnb 
     14Content\Piikki.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/ContentPipeline-{2119C4D2-AF14-42FC-976F-6011121F8356}.xml

    r6732 r6754  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    11       <Time>2015-07-02T11:34:24.210558+03:00</Time> 
     11      <Time>2015-07-02T14:35:56.7179082+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    8383      <Time>2015-06-30T13:58:10.2600977+03:00</Time> 
    8484    </Item> 
     85    <Item> 
     86      <Source>Background.png</Source> 
     87      <Name>Background</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background.xnb</Output> 
     92      <Time>2015-07-02T13:00:18.9195556+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>Background 2.png</Source> 
     96      <Name>Background 2</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 2.xnb</Output> 
     101      <Time>2015-07-02T14:03:39.0056603+03:00</Time> 
     102    </Item> 
     103    <Item> 
     104      <Source>Background 3.jpg</Source> 
     105      <Name>Background 3</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108      <Options>None</Options> 
     109      <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> 
     111    </Item> 
     112    <Item> 
     113      <Source>kentta4.txt</Source> 
     114      <Name>kentta4</Name> 
     115      <Importer>TextFileImporter</Importer> 
     116      <Processor>TextFileContentProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb</Output> 
     119      <Time>2015-07-02T14:35:56.6857088+03:00</Time> 
     120    </Item> 
     121    <Item> 
     122      <Source>Piikki.png</Source> 
     123      <Name>Piikki</Name> 
     124      <Importer>TextureImporter</Importer> 
     125      <Processor>TextureProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb</Output> 
     128      <Time>2015-07-02T14:34:33.9672778+03:00</Time> 
     129    </Item> 
    85130    <BuildSuccessful>true</BuildSuccessful> 
    86131    <Settings> 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/LukanPeli.csproj.FileListAbsolute.txt

    r6732 r6754  
    1616C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Maali.xnb 
    1717C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\maaliAani.xnb 
     18C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background.xnb 
     19C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 2.xnb 
     20C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 3.xnb 
     21C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb 
     22C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/cachefile-{2119C4D2-AF14-42FC-976F-6011121F8356}-targetpath.txt

    r6732 r6754  
    88Content\Maali.xnb 
    99Content\maaliAani.xnb 
     10Content\Background.xnb 
     11Content\Background 2.xnb 
     12Content\Background 3.xnb 
     13Content\kentta4.xnb 
     14Content\Piikki.xnb 
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/LukanPeliContent.contentproj

    r6732 r6754  
    104104    </Compile> 
    105105  </ItemGroup> 
     106  <ItemGroup> 
     107    <Compile Include="Background.png"> 
     108      <Name>Background</Name> 
     109      <Importer>TextureImporter</Importer> 
     110      <Processor>TextureProcessor</Processor> 
     111    </Compile> 
     112  </ItemGroup> 
     113  <ItemGroup> 
     114    <Compile Include="Background 2.png"> 
     115      <Name>Background 2</Name> 
     116      <Importer>TextureImporter</Importer> 
     117      <Processor>TextureProcessor</Processor> 
     118    </Compile> 
     119  </ItemGroup> 
     120  <ItemGroup> 
     121    <Compile Include="Background 3.jpg"> 
     122      <Name>Background 3</Name> 
     123      <Importer>TextureImporter</Importer> 
     124      <Processor>TextureProcessor</Processor> 
     125    </Compile> 
     126  </ItemGroup> 
     127  <ItemGroup> 
     128    <Compile Include="kentta4.txt"> 
     129      <Name>kentta4</Name> 
     130      <Importer>TextFileImporter</Importer> 
     131      <Processor>TextFileContentProcessor</Processor> 
     132    </Compile> 
     133  </ItemGroup> 
     134  <ItemGroup> 
     135    <Compile Include="Piikki.png"> 
     136      <Name>Piikki</Name> 
     137      <Importer>TextureImporter</Importer> 
     138      <Processor>TextureProcessor</Processor> 
     139    </Compile> 
     140  </ItemGroup> 
    106141  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    107142  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/kentta1.txt

    r6732 r6754  
    66.............................................................................................................................................................................. 
    77....................................................................................................................................................................................... 
    8  ............................................................................................................................V......................................................................V.........M....... 
    9 ...................................*.V..*......*....*.........*.....V.....................................*..................V..............................................................###################......................... 
    10 ..................#.#..#..#...#....#....#....#.....#......#.....#....#...:...#.....V........#................................V..................#....#.....#....#.....#...#....#....########################## 
     8 ............................................................................................................................V.................................................................VVV..V.........M....... 
     9....................V.....V........*.V..*......*....*.........*.....V.....................................*..................V..............................................................###################......................... 
     10..................#.#..#..#...#....#....#....#.....#......#.....#....#...:...#.....VVV......#................................V..................#....#.....#....#.....#...#....#....########################## 
    1111..............#...#....#......#....#....#....#.....#.......................#......######..........#..............*.......*...V.........#....#.............................................................             
    12 ..N.......*V........................11111111111111111111111111111111...................................#....#....#...#...#...#....#......................................... 
     12..N..P.....*V........................11111111111111111111111111111111...................................#....#....#...#...#...#....#......................................... 
    1313#############.................................... 
    1414#############11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 
Note: See TracChangeset for help on using the changeset viewer.