Changeset 2808


Ignore:
Timestamp:
2012-06-05 21:56:41 (11 years ago)
Author:
lesanton
Message:

Monia uusia ominaisuuksia, esin valikko

Location:
2012/23/LeoS
Files:
5 added
1 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • 2012/23/LeoS/leoS/leoS/Ohjelma.cs

    r2798 r2808  
    66    static void Main(string[] args) 
    77    { 
    8         using (leoS game = new leoS()) 
     8        using (LeoS game = new LeoS()) 
    99        { 
    1010#if !DEBUG 
  • 2012/23/LeoS/leoS/leoS/leoS.cs

    r2798 r2808  
    77using Jypeli.Widgets; 
    88 
    9 public class leoS : PhysicsGame 
     9public class LeoS : PhysicsGame 
    1010{ 
    1111    PhysicsObject pelaaja; 
    1212    bool pelaajaIlmassa = false; 
    1313 
     14 
     15 
    1416    public override void Begin() 
     17    { 
     18        MultiSelectWindow valikko = new MultiSelectWindow("Tervetuloa peliin", 
     19            "Aloita peli", "Lopeta"); valikko.ItemSelected += PainettiinValikonNappia; 
     20        Add(valikko); 
     21 
     22 
     23    } 
     24 
     25 
     26 
     27    void AloitaPeli() 
    1528    { 
    1629        LuoKentta(); 
     
    2033        Surface alareuna = Surface.CreateBottom(Level); 
    2134        alareuna.IsVisible = false; 
    22         alareuna.Tag = "reuna"; 
     35        alareuna.Tag = "reuna";      //Nämä Pois Begin-aliohjelmasta 
    2336        Add(alareuna); 
    24         // Level.CreateBorders(1, false); 
    2537 
    2638        Surface oikeareuna = Surface.CreateRight(Level); 
     
    2840        oikeareuna.Tag = "muuri"; 
    2941        Add(oikeareuna); 
     42    } 
    3043 
    31          
     44 
     45    void PainettiinValikonNappia(int valinta) 
     46    { 
     47        switch (valinta) 
     48        { 
     49            case 0: 
     50                AloitaPeli(); 
     51                break; 
     52            case 1: 
     53                Exit(); 
     54                break; 
     55 
     56        } 
    3257    } 
     58 
     59 
    3360 
    3461    void LuoKentta() 
     
    3764        AsetaOhjaimet(); 
    3865        Camera.Follow(pelaaja); 
     66 
    3967    } 
    4068 
     
    7199        Label tekstikentta = new Label("teksti"); 
    72100        tekstikentta.Text = "Hävisit Pelin"; 
    73         tekstikentta.TextColor = Color.Brown; 
     101        tekstikentta.TextColor = Color.BlueGray; 
    74102        Add(tekstikentta); 
    75103        tekstikentta.Font = Font.DefaultLarge; 
    76         
     104 
    77105    } 
    78106 
     
    109137    void PelaajaOsuiMuuriin(PhysicsObject tormaaja, PhysicsObject kohde) 
    110138    { 
    111        // 
     139        // 
    112140        Label tekstikentta = new Label("teksti"); 
    113         tekstikentta.Text = "Voitit Pelin";  
     141        tekstikentta.Text = "Voitit Pelin"; 
    114142        tekstikentta.Color = Color.Aqua; 
    115143        tekstikentta.TextColor = Color.Red; 
     
    117145        tekstikentta.Font = Font.DefaultLargeBold; 
    118146    } 
     147    //void AloitaUudelleen() 
     148    //{ 
     149        //MultiSelectWindow valikko2 = new MultiSelectWindow("Aloita Alusta", "Lopeta"); 
     150        //valikko2.ItemSelected += UudelleenAloitusValikko; 
     151        //Add(valikko2); 
     152        //AloitaPeli(); 
    119153 
     154   // } 
     155    //void UudelleenAloitusValikko(int valinta) 
     156    //{ 
     157      //  switch (valinta) 
     158        //{ 
     159          //  case 0: 
     160            //    AloitaUudelleen(); 
     161              //  break; 
     162            //case 1: 
     163              //  Exit(); 
     164                //break; 
     165        //} 
     166    //} 
    120167} 
    121168 
     169 
     170 
     171 
  • 2012/23/LeoS/leoS/leoS/leoS.csproj.Debug.cachefile

    r2798 r2808  
    11Content\Pelikuutio.xnb 
    22Content\kentta1.xnb 
    3 Content\kentta1.txt 
     3Content\kentta2.xnb 
     4Content\kentta2.txt 
  • 2012/23/LeoS/leoS/leoS/obj/x86/Debug/cachefile-{25605763-3341-4275-93D9-4B0A394A16A7}-targetpath.txt

    r2798 r2808  
    11Content\Pelikuutio.xnb 
    22Content\kentta1.xnb 
    3 Content\kentta1.txt 
     3Content\kentta2.xnb 
     4Content\kentta2.txt 
  • 2012/23/LeoS/leoS/leoS/obj/x86/Debug/leoS.csproj.FileListAbsolute.txt

    r2798 r2808  
    1111J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb 
    1212J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.txt 
     13J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\ResolveAssemblyReference.cache 
     14J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     15J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\leoS.exe 
     16J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\ResolveAssemblyReference.cache 
     17J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     18J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\leoS.exe 
     19J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb 
     20J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb 
     21J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\leoS.exe 
     22J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\leoS.pdb 
     23J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.dll 
     24J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.pdb 
     25J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.xml 
     26J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\leoS.pdb 
     27J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb 
     28J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.txt 
  • 2012/23/LeoS/leoS/leoSContent/kentta1.txt

    r2798 r2808  
    11 
    2                                                                                                                                                                                                                                                          #    
    3                                                                                                                                                                                                                                                        #       
    4                                                                                                                                                                                                     #  #                                             #         
    5                                                                                                                                           #                                                       #      #                                         #           
    6                                                                                                                                                                                                 #          #                                     #             
    7                                                                                                                                      ##########                                               #              #                                 #               
    8                                                                                                                                    #                                                        #                  #                             #                 
    9                                                                                                                                  #                                                        #                      #             #           #       #           
    10 #                 #                                      #                          #    # # #    #       #            #                                                                                                                          #            
    11                                                                                                                             ## # # # #    #       #           #       #               #                               #            # # #                       
    12                                                                                         #########  #######   ######  #######            #          #                                #                                                                          
    13                                                                                       #                                                #            #            #                #                                                                            
    14                                                                                     #                                                                 #                         #                                                                              
    15                                                                                   #                                                                     #                     #                                                                                
    16                                                                                 #                                                                        #######  ############                                                                                 
    17                                                  ##########                   #                                                                                                                                                                                
    18                                                #            #               #                                                                                                                                                                                  
    19                                              #                #           #                                                                                                                                                                                    
    20                                            #                    # #######                                                                                                                                                                                      
    21  P                      #### ####  ####   #                                                                                                                                                                                                                     
    22 ############..#########                                                                                                                                                                                                                                        
     2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### 
     3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     8                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     10                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     11                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     12                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     13                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     14                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     15                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     16                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     17                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     18                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     19                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     20                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     21                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     22                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               # 
     23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            # 
     24                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         # 
     25                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      # 
     26                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   # 
     27                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                # 
     28                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              # 
     29                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              # 
     30                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              # 
     31                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              # 
     32                                                                                                                                                                                                                                                                                                                                                                #                                                                                                                                          # 
     33                                                                                                                                                                                                                                                                                                                                                                #                                                                                                                                       # 
     34                                                                                                                                                                                                                                                                                                                                                                #                                                                                                                                    # 
     35                                                                                                                                                                                                                                                                                                                                                                #                                                0                                                        #######################  # 
     36                                                                                                                                                                                                                                                                                                                                                                #                                                                                                        # 
     37                                                                                                                                                                                                                                                                                                                                                                #                                                                                                        # 
     38                                                                                                                                                                                                                                                                                                                                                                #                                                                                                        # 
     39                                                                                                                                                                                                                                                                                                                                                                #                                                                   ###########                          # 
     40                                                                                                                                                                                                                                                                                                                                                                #                                                                   #                                                                    # 
     41                                                                                                                                                                                                                                                                                                                                                                #                                                                   #                                                                    # 
     42                                                                                                                                                                                                                                                                                                                                                                #                                                                   #                        # 
     43                                                                                                                                                                                                                                                                                                                                                                #                                                                   # 
     44                                                                                                                                                                                                                                                                                                                                                                #                                                                   # 
     45                                                                                                                                                                                                                                                                                                                                                                #                                                                   # 
     46                                                                                                                                                                                                                                                                                                                                                                #                                                                   # 
     47                                                                                                                                                                                                                                                                                                                                                                #                                                                   # 
     48                                                                                                                                                                                                                                                                   ##############################                                              # ####       #####  #                                                                # 
     49                                                                                                                                                                                                                                                                                                     #                                       #      #           #                                        #################          # 
     50                                                                                                                                                                                                                                                              # #######                              #                                     #        #           #                                        #                   #    # 
     51                                                                                                                                                                                                                                                                                                     #                                   #          #           #                                        # 
     52                                                                                                                                                                                                                                                           #                                         #                                 #            #         ###                                        # 
     53                                                                                                                                                                                                                                                         #                                           #                               #              #           #                                        # 
     54                                                                                                                                                                                                                                                       #                                             #                             #                ###         #                                        # 
     55                                                                                                                                                                                                                                                     #                                ###########                                #                                                                       # 
     56                                                                                                                                                                                                                                                  #                                                                            #                                                                  #      # 
     57                                                                                                                                                                                                                                                                                                                             #                                                                    #      # 
     58                                                                                                          # ####  ### ##                                                                                                                    #                                                                              #                                                                      #      # 
     59                                                                                                        #                                                                                                                             #                                                                                  #                                                                        #      # 
     60                                                                                                      #                                                                                                                           #             #                                                                       #                                                                          #      # 
     61                                                                                                    #                                                                                                                           #                       #                                                             #                                                                                   # 
     62                                                           ######                                 #                                                                                                                            #                                  #     #     #                 ###################                                                                                     # 
     63                                                                                               #                                                                                                                                                                                            #                                                         #################################     ############# 
     64                                                                                              #                                                                        ########                                             #                                                                                                                   # 
     65                                                         #      #                           #                                                                                                                             #                                                                                                                     # 
     66                                                       #           #                       #                                                                                                                             #                                                                                                              # 
     67                                                   #                #                   #                                                                                                                             # 
     68                  # # ##                        #                     #               #                                                                             ########## #   #    #   #       #               #           #       ##              #       #       #       #               #               #               # 
     69P                                             #                          # ##########                                                                                                                   #   #     #                                                                                                             # 
     70############     ###### ##########    ##### 
  • 2012/23/LeoS/leoS/leoSContent/leoSContent.contentproj

    r2798 r2808  
    5252  </ItemGroup> 
    5353  <ItemGroup> 
     54    <Compile Include="kentta2.txt"> 
     55      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
     56      <Name>kentta2</Name> 
     57      <Importer>TextFileImporter</Importer> 
     58      <Processor>TextFileContentProcessor</Processor> 
     59    </Compile> 
     60  </ItemGroup> 
     61  <ItemGroup> 
    5462    <Compile Include="kentta1.txt"> 
    55       <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    5663      <Name>kentta1</Name> 
    5764      <Importer>TextFileImporter</Importer> 
  • 2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/ContentPipeline.xml

    r2798 r2808  
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb</Output> 
     10      <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb</Output> 
    1111      <Time>2012-06-05T11:14:00.3164247+03:00</Time> 
    1212    </Item> 
     
    1717      <Processor>TextFileContentProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb</Output> 
     19      <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb</Output> 
     20      <Time>2012-06-05T19:41:23.844819+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>kentta2.txt</Source> 
     24      <Name>kentta2</Name> 
     25      <Importer>TextFileImporter</Importer> 
     26      <Processor>TextFileContentProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb</Output> 
    2029      <Time>2012-06-05T14:22:43.5066507+03:00</Time> 
    2130    </Item> 
     
    2635      <BuildConfiguration>Debug</BuildConfiguration> 
    2736      <CompressContent>false</CompressContent> 
    28       <RootDirectory>J:\MyTemp\leoS\leoS\leoSContent\</RootDirectory> 
    29       <LoggerRootDirectory>J:\MyTemp\leoS\leoS\leoS\</LoggerRootDirectory> 
    30       <IntermediateDirectory>J:\MyTemp\leoS\leoS\leoSContent\obj\x86\Debug\</IntermediateDirectory> 
    31       <OutputDirectory>J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\</OutputDirectory> 
     37      <RootDirectory>J:\LeoS\LeoS\leoS\leoSContent\</RootDirectory> 
     38      <LoggerRootDirectory>J:\LeoS\LeoS\leoS\leoS\</LoggerRootDirectory> 
     39      <IntermediateDirectory>J:\LeoS\LeoS\leoS\leoSContent\obj\x86\Debug\</IntermediateDirectory> 
     40      <OutputDirectory>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\</OutputDirectory> 
    3241    </Settings> 
    3342    <Assemblies> 
  • 2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/leoSContent.contentproj.FileListAbsolute.txt

    r2798 r2808  
    11J:\MyTemp\leoS\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache 
     2J:\LeoS\Do You really Wanna Jump\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache 
     3J:\LeoS\LeoS\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache 
Note: See TracChangeset for help on using the changeset viewer.