Changeset 6834 for 2015


Ignore:
Timestamp:
2015-07-21 11:26:13 (8 years ago)
Author:
arjuhoyl
Message:

TasoHyppely? pelin päivitys

Location:
2015/30/ArttuH/TasoHyppely
Files:
4 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/TasoHyppely.cs

    r6819 r6834  
    1818    Image pelaajanKuva1 = LoadImage("ukko"); 
    1919    Image pelaajanKuva2 = LoadImage("toinenukko"); 
    20     Image tahtiKuva = LoadImage("tahti"); 
     20    Image tahtiKuva = LoadImage("suklaa"); 
    2121    private Animation pelihahmo1; 
    2222    private Animation pelihahmo2; 
     
    2626    { 
    2727        Gravity = new Vector(0, -1000); 
    28  
     28        IntMeter pisteLaskuri; 
     29        //LuoPistelaskuri(); 
    2930        Paavalikko(); 
    3031        //LuoKentta(); 
     
    8586        pelaaja1.AnimWalk = pelihahmo1; 
    8687        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    87         ControllerOne.Listen(Button.A, ButtonState.Down, Hyppaa, "pelaaja hypää", pelaaja1, 150.0); 
    88         ControllerOne.ListenAnalog(AnalogControl.LeftStick, 0.1, Liikuta, "Pelaaja liikkuu vasemmalle/oikealle", pelaaja1); 
     88        ControllerOne.Listen(Button.A, ButtonState.Down, Hyppaa, "pelaaja hypää", pelaaja1, 300.0); 
     89        ControllerOne.ListenAnalog(AnalogControl.LeftStick, 0.1, Liikuta, "Pelaaja liikkuu vasemmalle/oikealle", pelaaja1);         
    8990        Add(pelaaja1); 
    9091    } 
     
    102103    { 
    103104        maaliAani.Play(); 
    104         MessageDisplay.Add("Keräsit tähden!"); 
     105        MessageDisplay.Add("Sait Suklaata!"); 
    105106        tahti.Destroy(); 
    106107    } 
     
    109110 
    110111        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     112        ControllerOne.Listen(Button.Start, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     113        ControllerTwo.Listen(Button.Start, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    111114    } 
    112115 
     
    150153        Add(alkuvalikko); 
    151154    } 
     155    //void LuoPistelaskuri() 
     156    //{ 
     157    //    pisteLaskuri = new IntMeter(0); 
     158 
     159    //    Label pisteNaytto = new Label(); 
     160    //    pisteNaytto.X = Screen.Left + 100; 
     161    //    pisteNaytto.Y = Screen.Top - 100; 
     162    //    pisteNaytto.TextColor = Color.Black; 
     163    //    pisteNaytto.Color = Color.White; 
     164    //    pisteNaytto.Title = "Suklaa"; 
     165 
     166    //    pisteNaytto.BindTo(pisteLaskuri); 
     167    //    Add(pisteNaytto); 
     168    //} 
     169    
    152170} 
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/TasoHyppely.csproj.Debug.cachefile

    r6819 r6834  
    22Content\norsu.xnb 
    33Content\tahti.xnb 
    4 Content\kentta1.xnb 
    5 Content\toinenukkoanimaatio.xnb 
    6 Content\ukkoanimaatio.xnb 
    74Content\toinenukkoanimaatio\toinenukkoanimaatio1.xnb 
    85Content\toinenukkoanimaatio\toinenukkoanimaatio2.xnb 
     
    118Content\toinenukko.xnb 
    129Content\ukko.xnb 
     10Content\kentta1.xnb 
    1311Content\Kentta2.xnb 
     12Content\toinenukkoanimaatio.xnb 
     13Content\ukkoanimaatio.xnb 
     14Content\suklaa.xnb 
     15Content\kentta3.xnb 
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/obj/x86/Debug/TasoHyppely.csproj.FileListAbsolute.txt

    r6819 r6834  
    2020C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukko.xnb 
    2121C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\Kentta2.xnb 
     22C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\suklaa.xnb 
     23C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\kentta3.xnb 
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/obj/x86/Debug/cachefile-{6FC3E379-BCB4-46AD-88D8-15B242DAFE49}-targetpath.txt

    r6819 r6834  
    22Content\norsu.xnb 
    33Content\tahti.xnb 
    4 Content\kentta1.xnb 
    5 Content\toinenukkoanimaatio.xnb 
    6 Content\ukkoanimaatio.xnb 
    74Content\toinenukkoanimaatio\toinenukkoanimaatio1.xnb 
    85Content\toinenukkoanimaatio\toinenukkoanimaatio2.xnb 
     
    118Content\toinenukko.xnb 
    129Content\ukko.xnb 
     10Content\kentta1.xnb 
    1311Content\Kentta2.xnb 
     12Content\toinenukkoanimaatio.xnb 
     13Content\ukkoanimaatio.xnb 
     14Content\suklaa.xnb 
     15Content\kentta3.xnb 
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppelyContent/Kentta2.txt

    r6819 r6834  
    1212 
    1313                         *   
    14                  ########## 
    15               ##              
    16          * ##  
    17         ##            
    18    Z N                            
    19 #########################   ############ 
     14                   ########## 
     15                ##              
     16          *  ##  
     17          ## 
     18    Z N                                          
     19#########################     ############### 
     20                                                 ### 
     21                                                          ### 
    2022 
    2123 
     
    4951 
    5052 
    51  
    52  
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppelyContent/TasoHyppelyContent.contentproj

    r6819 r6834  
    126126    </Compile> 
    127127  </ItemGroup> 
     128  <ItemGroup> 
     129    <Compile Include="suklaa.png"> 
     130      <Name>suklaa</Name> 
     131      <Importer>TextureImporter</Importer> 
     132      <Processor>TextureProcessor</Processor> 
     133    </Compile> 
     134  </ItemGroup> 
     135  <ItemGroup> 
     136    <Compile Include="kentta3.txt"> 
     137      <Name>kentta3</Name> 
     138      <Importer>TextFileImporter</Importer> 
     139      <Processor>TextFileContentProcessor</Processor> 
     140    </Compile> 
     141  </ItemGroup> 
    128142  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    129143  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppelyContent/obj/x86/Debug/ContentPipeline.xml

    r6819 r6834  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\maali.xnb</Output> 
    11       <Time>2015-07-20T11:45:45.3465342+03:00</Time> 
     11      <Time>2015-07-21T09:51:21.0660161+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\norsu.xnb</Output> 
    20       <Time>2015-07-20T11:45:45.3475342+03:00</Time> 
     20      <Time>2015-07-21T09:51:21.1128161+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2727      <Options>None</Options> 
    2828      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\tahti.xnb</Output> 
    29       <Time>2015-07-20T11:45:45.3495342+03:00</Time> 
     29      <Time>2015-07-21T09:51:21.2376161+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>toinenukkoanimaatio\toinenukkoanimaatio1.png</Source> 
     33      <Name>toinenukkoanimaatio\toinenukkoanimaatio1</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio1.xnb</Output> 
     38      <Time>2015-07-21T09:51:21.1284161+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>toinenukkoanimaatio\toinenukkoanimaatio2.png</Source> 
     42      <Name>toinenukkoanimaatio\toinenukkoanimaatio2</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio2.xnb</Output> 
     47      <Time>2015-07-21T09:51:21.1284161+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>ukkoanimaatio\ukkoanimaatio1.png</Source> 
     51      <Name>ukkoanimaatio\ukkoanimaatio1</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio1.xnb</Output> 
     56      <Time>2015-07-21T09:51:21.2376161+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>ukkoanimaatio\ukkoanimaatio2.png</Source> 
     60      <Name>ukkoanimaatio\ukkoanimaatio2</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio2.xnb</Output> 
     65      <Time>2015-07-21T09:51:21.2532161+03:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>toinenukko.png</Source> 
     69      <Name>toinenukko</Name> 
     70      <Importer>TextureImporter</Importer> 
     71      <Processor>TextureProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukko.xnb</Output> 
     74      <Time>2015-07-21T09:51:21.1128161+03:00</Time> 
     75    </Item> 
     76    <Item> 
     77      <Source>ukko.png</Source> 
     78      <Name>ukko</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukko.xnb</Output> 
     83      <Time>2015-07-21T09:51:21.2376161+03:00</Time> 
    3084    </Item> 
    3185    <Item> 
     
    3690      <Options>None</Options> 
    3791      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2015-07-20T14:45:22.4059763+03:00</Time> 
     92      <Time>2015-07-21T09:51:21.0660161+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>Kentta2.txt</Source> 
     96      <Name>Kentta2</Name> 
     97      <Importer>TextFileImporter</Importer> 
     98      <Processor>TextFileContentProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\Kentta2.xnb</Output> 
     101      <Time>2015-07-21T10:27:00.0048358+03:00</Time> 
    39102    </Item> 
    40103    <Item> 
     
    45108      <Options>None</Options> 
    46109      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio.xnb</Output> 
    47       <Time>2015-07-20T14:32:31.8033763+03:00</Time> 
     110      <Time>2015-07-21T09:51:21.2376161+03:00</Time> 
    48111      <Request>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio1.xnb</Request> 
    49112      <Request>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio2.xnb</Request> 
     
    56119      <Options>None</Options> 
    57120      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio.xnb</Output> 
    58       <Time>2015-07-20T14:32:37.8503763+03:00</Time> 
     121      <Time>2015-07-21T09:51:21.0660161+03:00</Time> 
    59122      <Request>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio1.xnb</Request> 
    60123      <Request>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio2.xnb</Request> 
    61124    </Item> 
    62125    <Item> 
    63       <Source>toinenukkoanimaatio\toinenukkoanimaatio1.png</Source> 
    64       <Name>toinenukkoanimaatio\toinenukkoanimaatio1</Name> 
     126      <Source>suklaa.png</Source> 
     127      <Name>suklaa</Name> 
    65128      <Importer>TextureImporter</Importer> 
    66129      <Processor>TextureProcessor</Processor> 
    67130      <Options>None</Options> 
    68       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio1.xnb</Output> 
    69       <Time>2015-07-20T14:37:36.8869763+03:00</Time> 
     131      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\suklaa.xnb</Output> 
     132      <Time>2015-07-21T11:02:12.3691527+03:00</Time> 
    70133    </Item> 
    71134    <Item> 
    72       <Source>toinenukkoanimaatio\toinenukkoanimaatio2.png</Source> 
    73       <Name>toinenukkoanimaatio\toinenukkoanimaatio2</Name> 
    74       <Importer>TextureImporter</Importer> 
    75       <Processor>TextureProcessor</Processor> 
    76       <Options>None</Options> 
    77       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukkoanimaatio\toinenukkoanimaatio2.xnb</Output> 
    78       <Time>2015-07-20T14:37:06.8699763+03:00</Time> 
    79     </Item> 
    80     <Item> 
    81       <Source>ukkoanimaatio\ukkoanimaatio1.png</Source> 
    82       <Name>ukkoanimaatio\ukkoanimaatio1</Name> 
    83       <Importer>TextureImporter</Importer> 
    84       <Processor>TextureProcessor</Processor> 
    85       <Options>None</Options> 
    86       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio1.xnb</Output> 
    87       <Time>2015-07-20T14:34:19.4489763+03:00</Time> 
    88     </Item> 
    89     <Item> 
    90       <Source>ukkoanimaatio\ukkoanimaatio2.png</Source> 
    91       <Name>ukkoanimaatio\ukkoanimaatio2</Name> 
    92       <Importer>TextureImporter</Importer> 
    93       <Processor>TextureProcessor</Processor> 
    94       <Options>None</Options> 
    95       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukkoanimaatio\ukkoanimaatio2.xnb</Output> 
    96       <Time>2015-07-20T14:34:19.4499763+03:00</Time> 
    97     </Item> 
    98     <Item> 
    99       <Source>toinenukko.png</Source> 
    100       <Name>toinenukko</Name> 
    101       <Importer>TextureImporter</Importer> 
    102       <Processor>TextureProcessor</Processor> 
    103       <Options>None</Options> 
    104       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\toinenukko.xnb</Output> 
    105       <Time>2015-07-20T14:38:56.5289763+03:00</Time> 
    106     </Item> 
    107     <Item> 
    108       <Source>ukko.png</Source> 
    109       <Name>ukko</Name> 
    110       <Importer>TextureImporter</Importer> 
    111       <Processor>TextureProcessor</Processor> 
    112       <Options>None</Options> 
    113       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\ukko.xnb</Output> 
    114       <Time>2015-07-20T14:41:28.8829763+03:00</Time> 
    115     </Item> 
    116     <Item> 
    117       <Source>Kentta2.txt</Source> 
    118       <Name>Kentta2</Name> 
     135      <Source>kentta3.txt</Source> 
     136      <Name>kentta3</Name> 
    119137      <Importer>TextFileImporter</Importer> 
    120138      <Processor>TextFileContentProcessor</Processor> 
    121139      <Options>None</Options> 
    122       <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\Kentta2.xnb</Output> 
    123       <Time>2015-07-20T14:51:29.5439763+03:00</Time> 
     140      <Output>C:\MyTemp\ArttuH\TasoHyppely\TasoHyppely\TasoHyppely\bin\x86\Debug\Content\kentta3.xnb</Output> 
     141      <Time>2015-07-21T11:09:53.2177527+03:00</Time> 
    124142    </Item> 
    125143    <BuildSuccessful>true</BuildSuccessful> 
     
    169187      <Assembly> 
    170188        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    171         <Value>2015-07-09T14:36:28.5419346+03:00</Value> 
     189        <Value>2015-07-09T14:29:14.6960909+03:00</Value> 
    172190      </Assembly> 
    173191    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.