Changeset 9106


Ignore:
Timestamp:
2017-07-26 09:32:18 (6 years ago)
Author:
nupeohje
Message:

Pahiksia tulee 3kpl ja niillä on kuva

Location:
2017/30/JouniP/Syomispeli
Files:
9 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/JouniP/Syomispeli/Syomispeli/Syomispeli/Syomispeli.cs

    r9105 r9106  
    1111    PhysicsObject pelaaja1; 
    1212 
     13    Image pahiksenNollailukuva = LoadImage("pahisnollailee"); 
     14 
    1315    public override void Begin() 
    1416    { 
     
    1618        LisaaPelaaja1(); 
    1719        LisaaOhjaimet(); 
    18          
    19          
     20 
     21        //LisaaPahis(100.0, 0.0); 
     22        //LisaaPahis(-100.0, 0.0); 
     23        //LisaaPahis(0.0, 200.0); 
     24 
     25        for (int i = 0; i < 3; i++) 
     26        { 
     27            LisaaPahis(RandomGen.NextDouble(Level.Left, Level.Right), RandomGen.NextDouble(Level.Bottom, Level.Top)); 
     28        } 
     29 
     30 
    2031        LuoKentta(); 
    2132 
     
    2435         
    2536    } 
     37 
     38    void LisaaPahis(double x, double y) 
     39    { 
     40        PhysicsObject pahis = new PhysicsObject(40.0, 40.0); 
     41        pahis.X = x; 
     42        pahis.Y = y; 
     43        pahis.CanRotate = false; 
     44        pahis.Image = pahiksenNollailukuva; 
     45        Add(pahis); 
     46    } 
     47 
    2648    void LuoKentta() 
    2749    { 
     
    5880        //LuoSyotavaJuttu(-200.0, 90.0); 
    5981 
    60         for (int i = 0; i < 100; i++) 
     82        for (int i = 0; i < 50; i++) 
    6183        { 
    6284            double xKoordinaatti = RandomGen.NextDouble(Level.Left, Level.Right); 
  • 2017/30/JouniP/Syomispeli/Syomispeli/Syomispeli/obj/x86/Debug/ContentPipeline-{D3520167-BC59-4ACB-ACDF-67593CBFE46B}.xml

    r9075 r9106  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>pahisnollailee.png</Source> 
     6      <Name>pahisnollailee</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahisnollailee.xnb</Output> 
     11      <Time>2017-07-26T09:27:31.2982288+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>pahisvihaisena.png</Source> 
     15      <Name>pahisvihaisena</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahisvihaisena.xnb</Output> 
     20      <Time>2017-07-26T09:27:31.2952285+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>pahikseenosuu.png</Source> 
     24      <Name>pahikseenosuu</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahikseenosuu.xnb</Output> 
     29      <Time>2017-07-26T09:27:31.2962286+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> 
    1978        <Value>2016-06-13T14:34:23.3940496+03:00</Value> 
  • 2017/30/JouniP/Syomispeli/Syomispeli/Syomispeli/obj/x86/Debug/Syomispeli.csproj.FileListAbsolute.txt

    r9075 r9106  
    77C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\obj\x86\Debug\Syomispeli.exe 
    88C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\obj\x86\Debug\Syomispeli.pdb 
     9C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahisnollailee.xnb 
     10C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahisvihaisena.xnb 
     11C:\MyTemp\JouniP\Syomispeli\Syomispeli\Syomispeli\bin\x86\Debug\Content\pahikseenosuu.xnb 
  • 2017/30/JouniP/Syomispeli/Syomispeli/SyomispeliContent/SyomispeliContent.contentproj

    r9075 r9106  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="pahikseenosuu.png"> 
     49      <Name>pahikseenosuu</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53    <Compile Include="pahisnollailee.png"> 
     54      <Name>pahisnollailee</Name> 
     55      <Importer>TextureImporter</Importer> 
     56      <Processor>TextureProcessor</Processor> 
     57    </Compile> 
     58    <Compile Include="pahisvihaisena.png"> 
     59      <Name>pahisvihaisena</Name> 
     60      <Importer>TextureImporter</Importer> 
     61      <Processor>TextureProcessor</Processor> 
     62    </Compile> 
     63  </ItemGroup> 
    4764  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4865  <!--  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.