Ignore:
Timestamp:
2017-06-14 14:57:51 (2 years ago)
Author:
npo17_19
Message:

dfgnpsdufgnsdg

Location:
2017/24/VihantiK/TrumpTheGame/TrumpTheGame
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/VihantiK/TrumpTheGame/TrumpTheGame/TrumpTheGame.sln

    r8598 r8664  
    44VisualStudioVersion = 14.0.23107.0 
    55MinimumVisualStudioVersion = 10.0.40219.1 
    6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrumpTheGame", "TrumpTheGame\TrumpTheGame\TrumpTheGame.csproj", "{FD0A69FD-B3D0-4067-8558-8859B2F4F549}" 
     6Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EtsiTähtiNäytönYläreunasta", "TrumpTheGame\TrumpTheGame\EtsiTähtiNäytönYläreunasta.csproj", "{FD0A69FD-B3D0-4067-8558-8859B2F4F549}" 
    77EndProject 
    8 Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "TrumpTheGameContent", "TrumpTheGame\TrumpTheGameContent\TrumpTheGameContent.contentproj", "{ECDC6D83-C7C7-47F1-936F-BE0F3C819C76}" 
     8Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrumpTheGameContent", "TrumpTheGame\TrumpTheGameContent\TrumpTheGameContent.contentproj", "{ECDC6D83-C7C7-47F1-936F-BE0F3C819C76}" 
    99EndProject 
    1010Global 
  • 2017/24/VihantiK/TrumpTheGame/TrumpTheGame/TrumpTheGame/TrumpTheGame/TrumpTheGame.cs

    r8598 r8664  
    99public class TrumpTheGame : PhysicsGame 
    1010{ 
     11    Image ukko = LoadImage("ukko"); 
     12    PhysicsObject picture; 
    1113    public override void Begin() 
    1214    { 
    13         // TODO: Kirjoita ohjelmakoodisi tähän 
    14  
    1515        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    1616        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     17        Level.Background.Color = Color.Emerald; 
     18        SmoothTextures = (false); 
     19        //Level.CreateBorders(1.0, false); 
     20        //Gravity = new Vector(0.0, -250); 
     21        AsetaOhjaimet(); 
     22        LuoKentta(); 
    1723    } 
     24    void LuoKentta() 
     25    { 
     26        TileMap kentta = TileMap.FromLevelAsset("jtn2"); 
     27        kentta.SetTileMethod('#', palikka); 
     28        kentta.SetTileMethod('P', luohahmo); 
     29        kentta.Execute(20.0, 20.0); 
     30 
     31    } 
     32    void luohahmo(Vector paikka, double korkeus, double leveys) 
     33    { 
     34        picture = new PhysicsObject(korkeus, leveys); 
     35        picture.Image = ukko; 
     36        Add(picture); 
     37    } 
     38    void palikka(Vector paikka, double korkeus, double leveys) 
     39    { 
     40        PhysicsObject palikka = PhysicsObject.CreateStaticObject(korkeus, leveys); 
     41        Add(palikka); 
     42    } 
     43        void AsetaOhjaimet() 
     44    { 
     45 
     46        Keyboard.Listen(Key.W, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta ukko ylös", picture, new Vector(0.0, 300.0)); 
     47        Keyboard.Listen(Key.W, ButtonState.Released, AsetaNopeus, null, picture, Vector.Zero); 
     48        Keyboard.Listen(Key.S, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta ukko alas", picture, new Vector(0.0, -300)); 
     49        Keyboard.Listen(Key.S, ButtonState.Released, AsetaNopeus, null, picture, Vector.Zero); 
     50        Keyboard.Listen(Key.A, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta ukko vasemmalle", picture, new Vector(-300.0, 0.0)); 
     51        Keyboard.Listen(Key.A, ButtonState.Released, AsetaNopeus, null, picture, Vector.Zero); 
     52        Keyboard.Listen(Key.D, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta ukko oikealle", picture, new Vector(300.0, 0.0)); 
     53        Keyboard.Listen(Key.D, ButtonState.Released, AsetaNopeus, null, picture, Vector.Zero); 
     54 
     55 
     56    } 
     57    void AsetaNopeus(PhysicsObject maila, Vector nopeus) 
     58    { 
     59        maila.Push(nopeus); 
     60    } 
     61 
     62 
     63 
     64 
     65 
     66 
     67 
     68 
     69 
    1870} 
  • 2017/24/VihantiK/TrumpTheGame/TrumpTheGame/TrumpTheGame/TrumpTheGame/obj/x86/Debug/ContentPipeline-{ECDC6D83-C7C7-47F1-936F-BE0F3C819C76}.xml

    r8598 r8664  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>ukko.png</Source> 
     6      <Name>ukko</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\ukko.xnb</Output> 
     11      <Time>2017-06-14T10:46:24.2990584+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>jtn.txt</Source> 
     15      <Name>jtn</Name> 
     16      <Importer>TextFileImporter</Importer> 
     17      <Processor>TextFileContentProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\jtn.xnb</Output> 
     20      <Time>2017-06-14T14:09:53.2811847+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>jtn2.txt</Source> 
     24      <Name>jtn2</Name> 
     25      <Importer>TextFileImporter</Importer> 
     26      <Processor>TextFileContentProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\jtn2.xnb</Output> 
     29      <Time>2017-06-14T14:56:03.7477446+03:00</Time> 
     30    </Item> 
    431    <BuildSuccessful>true</BuildSuccessful> 
    532    <Settings> 
     
    1643    <Assemblies> 
    1744      <Assembly> 
     45        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     46        <Value>2015-02-09T20:18:44+02:00</Value> 
     47      </Assembly> 
     48      <Assembly> 
     49        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     50        <Value>2011-09-01T16:22:30+03:00</Value> 
     51      </Assembly> 
     52      <Assembly> 
     53        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     54        <Value>2011-09-01T16:22:30+03:00</Value> 
     55      </Assembly> 
     56      <Assembly> 
     57        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     58        <Value>2011-09-01T16:22:30+03:00</Value> 
     59      </Assembly> 
     60      <Assembly> 
     61        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     62        <Value>2011-09-01T16:22:30+03:00</Value> 
     63      </Assembly> 
     64      <Assembly> 
     65        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     66        <Value>2011-09-01T16:22:30+03:00</Value> 
     67      </Assembly> 
     68      <Assembly> 
     69        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     70        <Value>2011-09-01T16:22:30+03:00</Value> 
     71      </Assembly> 
     72      <Assembly> 
     73        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     74        <Value>2015-02-17T22:27:18+02:00</Value> 
     75      </Assembly> 
     76      <Assembly> 
    1877        <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> 
    19         <Value>2017-06-09T17:02:21.2130348+03:00</Value> 
     78        <Value>2017-06-10T12:57:03.6416824+03:00</Value> 
    2079      </Assembly> 
    2180    </Assemblies> 
  • 2017/24/VihantiK/TrumpTheGame/TrumpTheGame/TrumpTheGame/TrumpTheGame/obj/x86/Debug/TrumpTheGame.csproj.FileListAbsolute.txt

    r8598 r8664  
    77C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\obj\x86\Debug\TrumpTheGame.exe 
    88C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\obj\x86\Debug\TrumpTheGame.pdb 
     9C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\ukko.xnb 
     10C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\ukko.png 
     11C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\jtn.xnb 
     12C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\jtn2.xnb 
     13C:\MyTemp\VihantiK\TrumpTheGame\TrumpTheGame\TrumpTheGame\TrumpTheGame\bin\x86\Debug\Content\jtn2.txt 
  • 2017/24/VihantiK/TrumpTheGame/TrumpTheGame/TrumpTheGame/TrumpTheGameContent/TrumpTheGameContent.contentproj

    r8598 r8664  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="ukko.png"> 
     49      <Name>ukko</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     53    </Compile> 
     54  </ItemGroup> 
     55  <ItemGroup> 
     56    <Compile Include="jtn.txt"> 
     57      <Name>jtn</Name> 
     58      <Importer>TextFileImporter</Importer> 
     59      <Processor>TextFileContentProcessor</Processor> 
     60    </Compile> 
     61  </ItemGroup> 
     62  <ItemGroup> 
     63    <Compile Include="jtn2.txt"> 
     64      <Name>jtn2</Name> 
     65      <Importer>TextFileImporter</Importer> 
     66      <Processor>TextFileContentProcessor</Processor> 
     67      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     68    </Compile> 
     69  </ItemGroup> 
    4770  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4871  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.