Changeset 5931 for 2015/24/OttoK


Ignore:
Timestamp:
2015-06-09 12:01:51 (8 years ago)
Author:
sieerinn
Message:
 
Location:
2015/24/OttoK
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II.csproj.Debug.cachefile

    r5909 r5931  
    44Content\tahti.xnb 
    55Content\kaupunkitausta.xnb 
     6Content\auto1kuva.xnb 
    67Content\kentta1.txt 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand_Theft_Norsu_II.cs

    r5909 r5931  
    99public class Grand_Theft_Norsu_II : PhysicsGame 
    1010{ 
     11     
    1112    Image kaupunkitausta = LoadImage("kaupunkitausta"); 
    1213      
     
    1718    const int RUUDUN_KOKO = 42; 
    1819 
     20    
     21 
    1922    PlatformCharacter pelaaja1; 
    2023 
    2124    Image pelaajanKuva = LoadImage("norsu"); 
    2225    Image tahtiKuva = LoadImage("tahti"); 
     26    Image auto1kuva = LoadImage("auto1kuva"); 
     27    double hyppykerroin = 1.0; 
    2328 
    2429    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     
    2934        SetWindowSize(1024, 768, true);  
    3035        Gravity = new Vector(0, -1000); 
     36 
     37        Mouse.IsCursorVisible = true; 
     38        Vector paikkaRuudulla = Mouse.PositionOnScreen; 
     39        Vector paikkaKentalla = Mouse.PositionOnWorld; 
    3140 
    3241        LuoKentta(); 
     
    4453        kentta.SetTileMethod('*', LisaaTahti); 
    4554        kentta.SetTileMethod('N', LisaaPelaaja); 
     55        kentta.SetTileMethod('A', LuoAuto); 
    4656        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4757        Level.CreateBorders(); 
     
    8494        Add(pelaaja1); 
    8595 
    86         PhysicsObject auto1 = new PhysicsObject(150 
    87             , 100); 
    88         auto1.Shape = Shape.Rectangle; 
    89         Add(auto1); 
     96         
    9097    } 
     98    void MeneAutoon(PhysicsObject auto) 
     99    { 
     100        pelaaja1.Image = auto1kuva; 
     101        pelaaja1.Shape = Shape.FromImage(auto1kuva); 
     102 
     103        Vector autonPaikka = auto.Position; 
     104         
     105 
     106 
     107 
     108    } 
     109 
     110 
    91111 
    92112 
     
    100120        Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    101121        Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
     122        Keyboard.Listen(Key.F2, ButtonState.Down, AvaaKirjoitusIkkuna, "Avaa kirjoitusikkunan"); 
     123        Keyboard.Listen(Key.LeftControl, ButtonState.Pressed, AsetaHyppykerroin, "Korkeampi hyppy", 1.5); 
     124        Keyboard.Listen(Key.LeftControl, ButtonState.Released, AsetaHyppykerroin, null, 1.0); 
     125        Mouse.Listen(MouseButton.Left, ButtonState.Pressed, TarkistaHiirenPainallus, "Objektin kohdalla toiminto"); 
     126      
    102127 
    103128        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
     
    107132        ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    108133        ControllerOne.ListenAnalog(AnalogControl.LeftStick, 2.0, 
    109   LiikutaPelaajaa, "Liikuta pelaajaa tattia pyörittämällä."); 
     134        LiikutaPelaajaa, "Liikuta pelaajaa tattia pyörittämällä."); 
    110135        Vector tatinAsento = ControllerOne.LeftThumbDirection; 
    111136 
     
    120145    void Hyppaa(PlatformCharacter hahmo, double nopeus) 
    121146    { 
    122         hahmo.Jump(nopeus); 
     147        hahmo.Jump(nopeus*hyppykerroin); 
    123148    } 
    124149 
     
    133158        Vector tatinAsento = tatinTila.StateVector; 
    134159    } 
     160    void TarkistaHiirenPainallus() 
     161    {  
     162 
     163    } 
     164    void LuoAuto(Vector paikka, double leveys, double korkeus) 
     165    { 
     166        PhysicsObject auto1 = new PhysicsObject(auto1kuva); 
     167        auto1.Shape = Shape.FromImage(auto1kuva); 
     168        auto1.Position = paikka+ new Vector(0, 40); 
     169        auto1.Image = auto1kuva; 
     170        auto1.Mass = 350; 
     171        Add(auto1); 
     172 
     173    } 
     174    void AvaaKirjoitusIkkuna() 
     175    { 
     176        InputWindow kysymysIkkuna = new InputWindow(""); 
     177        kysymysIkkuna.TextEntered += ProcessInput; 
     178        Add(kysymysIkkuna); 
     179 
     180    } 
     181    void ProcessInput(InputWindow ikkuna) 
     182    { 
     183        string vastaus = ikkuna.InputBox.Text; 
     184        // tehdään jotain vastauksella 
     185    } 
     186    void AsetaHyppykerroin(double haluttukerroin) 
     187    { 
     188        hyppykerroin = haluttukerroin; 
     189    } 
    135190} 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/bin/x86/Debug/Content/kentta1.txt

    r5909 r5931  
    1                                                                                                                            
    2  
    3 #                                                                                                                          # 
    4 #                                                                                                                          # 
    5 #                                                                                                                          # 
    6 #                                                                                                                          # 
    7 #                                                                                                                          # 
    8 #                                                                                                                          # 
    9 #                                     ##########                                                                           # 
    10 #                                                                                                                          # 
    11 #                                                     ###      N                                                      # 
    12 #                                                            #####                                                         # 
    13 #                                                                                                                          # 
    14 #                                                                                                                          # 
    15 #                                                                            ########                                      # 
    16 #                                                                                                                          # 
    17 #                                                                                                                          # 
    18 #                                                                                                                          # 
    19 #                                                                                                                          # 
    20 #                                                                                                                          # 
    21 #                                                                                                                          # 
    22 #                                                                            ###                                           #     
    23 #                                                                        ####                                              # 
     1............................................................................................................................ 
     2#..........................................................................................................................# 
     3#..........................................................................................................................# 
     4#..........................................................................................................................# 
     5#..........................................................................................................................# 
     6#..........................................................................................................................# 
     7#..........................................................................................................................# 
     8#.....................................##########...........................................................................# 
     9#..........................................................................................................................# 
     10#.....................................................###......N...........................................................# 
     11#.........................................................#######..........................................................# 
     12#..........................................................................................................................# 
     13#............................................................................########......................................# 
     14#..........................................................................................................................# 
     15#..........................................................................................................................# 
     16#..........................................................................................................................# 
     17#..........................................................................................................................# 
     18#..........................................................................................................................# 
     19#..........................................................................................................................# 
     20#............................................................................###...........................................# 
     21#..........................................................A.............####..............................................# 
    2422############################################################################################################################# 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/obj/x86/Debug/Grand Theft Norsu II.csproj.FileListAbsolute.txt

    r5909 r5931  
    1313C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.txt 
    1414C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb 
     15C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb 
     16C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb 
     17C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb 
     18C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb 
     19C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb 
     20C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.txt 
     21C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Grand Theft Norsu II.exe 
     22C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Grand Theft Norsu II.pdb 
     23C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Jypeli.dll 
     24C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Jypeli.xml 
     25C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.csprojResolveAssemblyReference.cache 
     26C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     27C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.exe 
     28C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.pdb 
     29C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\auto1kuva.xnb 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r5909 r5931  
    44Content\tahti.xnb 
    55Content\kaupunkitausta.xnb 
     6Content\auto1kuva.xnb 
    67Content\kentta1.txt 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/Grand Theft Norsu IIContent.contentproj

    r5909 r5931  
    7575    </Compile> 
    7676  </ItemGroup> 
     77  <ItemGroup> 
     78    <Compile Include="auto1kuva.png"> 
     79      <Name>auto1kuva</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.  
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/kentta1.txt

    r5909 r5931  
    1                                                                                                                            
    2  
    3 #                                                                                                                          # 
    4 #                                                                                                                          # 
    5 #                                                                                                                          # 
    6 #                                                                                                                          # 
    7 #                                                                                                                          # 
    8 #                                                                                                                          # 
    9 #                                     ##########                                                                           # 
    10 #                                                                                                                          # 
    11 #                                                     ###      N                                                      # 
    12 #                                                            #####                                                         # 
    13 #                                                                                                                          # 
    14 #                                                                                                                          # 
    15 #                                                                            ########                                      # 
    16 #                                                                                                                          # 
    17 #                                                                                                                          # 
    18 #                                                                                                                          # 
    19 #                                                                                                                          # 
    20 #                                                                                                                          # 
    21 #                                                                                                                          # 
    22 #                                                                            ###                                           #     
    23 #                                                                        ####                                              # 
     1............................................................................................................................ 
     2#..........................................................................................................................# 
     3#..........................................................................................................................# 
     4#..........................................................................................................................# 
     5#..........................................................................................................................# 
     6#..........................................................................................................................# 
     7#..........................................................................................................................# 
     8#.....................................##########...........................................................................# 
     9#..........................................................................................................................# 
     10#.....................................................###......N...........................................................# 
     11#.........................................................#######..........................................................# 
     12#..........................................................................................................................# 
     13#............................................................................########......................................# 
     14#..........................................................................................................................# 
     15#..........................................................................................................................# 
     16#..........................................................................................................................# 
     17#..........................................................................................................................# 
     18#..........................................................................................................................# 
     19#..........................................................................................................................# 
     20#............................................................................###...........................................# 
     21#..........................................................A.............####..............................................# 
    2422############################################################################################################################# 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/obj/x86/Debug/ContentPipeline-.xml

    r5909 r5931  
    88      <Processor>TextFileContentProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb</Output> 
    11       <Time>2015-06-08T14:32:24.5276945+03:00</Time> 
     10      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb</Output> 
     11      <Time>2015-06-09T11:37:03.6540905+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1717      <Processor>SoundEffectProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb</Output> 
    20       <Time>2015-06-08T11:10:26.2276117+03:00</Time> 
     19      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb</Output> 
     20      <Time>2015-06-09T09:45:39.6746138+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2626      <Processor>TextureProcessor</Processor> 
    2727      <Options>None</Options> 
    28       <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb</Output> 
    29       <Time>2015-06-08T11:10:26.2286117+03:00</Time> 
     28      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb</Output> 
     29      <Time>2015-06-09T09:45:39.7214138+03:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3535      <Processor>TextureProcessor</Processor> 
    3636      <Options>None</Options> 
    37       <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb</Output> 
    38       <Time>2015-06-08T11:10:26.2306117+03:00</Time> 
     37      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb</Output> 
     38      <Time>2015-06-09T09:45:39.7994138+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4444      <Processor>TextureProcessor</Processor> 
    4545      <Options>None</Options> 
    46       <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb</Output> 
    47       <Time>2015-06-08T11:50:12.9666117+03:00</Time> 
     46      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb</Output> 
     47      <Time>2015-06-09T09:45:39.7838138+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>auto1kuva.png</Source> 
     51      <Name>auto1kuva</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\auto1kuva.xnb</Output> 
     56      <Time>2015-06-09T10:28:52.7008223+03:00</Time> 
    4857    </Item> 
    4958    <BuildSuccessful>true</BuildSuccessful> 
     
    5463      <BuildConfiguration>Debug</BuildConfiguration> 
    5564      <CompressContent>false</CompressContent> 
    56       <RootDirectory>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\</RootDirectory> 
    57       <LoggerRootDirectory>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\</LoggerRootDirectory> 
    58       <IntermediateDirectory>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\</IntermediateDirectory> 
    59       <OutputDirectory>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\</OutputDirectory> 
     65      <RootDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\</RootDirectory> 
     66      <LoggerRootDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\</LoggerRootDirectory> 
     67      <IntermediateDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\</IntermediateDirectory> 
     68      <OutputDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\</OutputDirectory> 
    6069    </Settings> 
    6170    <Assemblies> 
     
    6675      <Assembly> 
    6776        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
    68         <Value>2011-09-01T17:22:30+03:00</Value> 
     77        <Value>2011-09-01T16:22:30+03:00</Value> 
    6978      </Assembly> 
    7079      <Assembly> 
    7180        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
    72         <Value>2011-09-01T17:22:30+03:00</Value> 
     81        <Value>2011-09-01T16:22:30+03:00</Value> 
    7382      </Assembly> 
    7483      <Assembly> 
    7584        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
    76         <Value>2011-09-01T17:22:30+03:00</Value> 
     85        <Value>2011-09-01T16:22:30+03:00</Value> 
    7786      </Assembly> 
    7887      <Assembly> 
    7988        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
    80         <Value>2011-09-01T17:22:30+03:00</Value> 
     89        <Value>2011-09-01T16:22:30+03:00</Value> 
    8190      </Assembly> 
    8291      <Assembly> 
    8392        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
    84         <Value>2011-09-01T17:22:30+03:00</Value> 
     93        <Value>2011-09-01T16:22:30+03:00</Value> 
    8594      </Assembly> 
    8695      <Assembly> 
    8796        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
    88         <Value>2011-09-01T17:22:30+03:00</Value> 
     97        <Value>2011-09-01T16:22:30+03:00</Value> 
    8998      </Assembly> 
    9099      <Assembly> 
     
    94103      <Assembly> 
    95104        <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> 
    96         <Value>2012-03-16T14:33:25.4069086+02:00</Value> 
     105        <Value>2014-04-22T23:59:39.5941331+03:00</Value> 
    97106      </Assembly> 
    98107    </Assemblies> 
  • 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/obj/x86/Debug/Grand Theft Norsu IIContent.contentproj.FileListAbsolute.txt

    r5909 r5931  
    11C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\Grand Theft Norsu IIContent.contentprojResolveAssemblyReference.cache 
     2C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\Grand Theft Norsu IIContent.contentprojResolveAssemblyReference.cache 
Note: See TracChangeset for help on using the changeset viewer.