Changeset 8591 for 2017/24


Ignore:
Timestamp:
2017-06-13 14:17:15 (6 years ago)
Author:
npo17_4
Message:
 
Location:
2017/24/EmiliaM
Files:
11 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/EmiliaM/Testi_Little_miner.cs

    r8527 r8591  
    99public class Testi_Little_miner : PhysicsGame 
    1010{ 
     11     
     12    PhysicsObject hakku; 
     13 
    1114    private double liikkumisnopeus = 300; 
    1215    PhysicsObject pelaaja; 
     
    1417    { 
    1518        LuoKentta(); 
     19        LuoHakku(pelaaja.X, pelaaja.Y + -50.0); 
    1620         
    1721        Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, null, pelaaja, new Vector(-liikkumisnopeus, 0)); 
     
    2630        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    2731        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     32    } 
     33 
     34    void LuoHakku(double x, double y) 
     35    { 
     36        hakku = new PhysicsObject(50.0, 50.0); 
     37        hakku.X = x; 
     38        hakku.Y = y; 
     39        hakku.Shape = Shape.Rectangle; 
     40        hakku.Color = Color.OrangeRed; 
     41        hakku.Tag = "hakku"; 
     42        hakku.Restitution = 0.0; 
     43        Add(hakku); 
     44        
     45        AxleJoint liitos = new AxleJoint(hakku, pelaaja); 
     46        Add(liitos); 
    2847    } 
    2948 
     
    6382        pelaaja.Color = Color.Cyan; 
    6483        Camera.Follow(pelaaja); 
     84        pelaaja.Restitution = 0.0; 
    6585        Add(pelaaja); 
    6686    } 
     
    7292        palikka.Shape = Shape.Rectangle; 
    7393        palikka.Color = Color.Black; 
     94        palikka.Restitution = 0.0; 
    7495        Add(palikka); 
    7596    } 
     
    81102        palikka.Shape = Shape.Rectangle; 
    82103        palikka.Color = Color.Brown; 
     104        palikka.Restitution = 0.0; 
    83105        Add(palikka); 
    84106    } 
     
    90112        palikka.Shape = Shape.Rectangle; 
    91113        palikka.Color = Color.Gray; 
     114        palikka.Restitution = 0.0; 
    92115        Add(palikka); 
    93116    } 
     
    98121        palikka.Shape = Shape.Rectangle; 
    99122        palikka.Color = Color.LightGray; 
     123        palikka.Restitution = 0.0; 
    100124        Add(palikka); 
    101125    } 
     
    107131        palikka.Shape = Shape.Rectangle; 
    108132        palikka.Color = Color.Red; 
     133        palikka.Restitution = 0.0; 
    109134        Add(palikka); 
    110135    } 
     
    116141        palikka.Shape = Shape.Rectangle; 
    117142        palikka.Color = Color.Green; 
     143        palikka.Restitution = 0.0; 
    118144        Add(palikka); 
    119145    } 
     
    125151        palikka.Shape = Shape.Rectangle; 
    126152        palikka.Color = Color.DarkJungleGreen; 
     153        palikka.Restitution = 0.0; 
    127154        Add(palikka); 
    128155    } 
     
    134161        palikka.Shape = Shape.Rectangle; 
    135162        palikka.Color = Color.JungleGreen; 
     163        palikka.Restitution = 0.0; 
    136164        Add(palikka); 
    137165    } 
     
    143171        palikka.Shape = Shape.Rectangle; 
    144172        palikka.Color = Color.Blue; 
     173        palikka.Restitution = 0.0; 
    145174        Add(palikka); 
    146175    } 
     
    152181        palikka.Shape = Shape.Rectangle; 
    153182        palikka.Color = Color.BlueGray; 
     183        palikka.Restitution = 0.0; 
    154184        Add(palikka); 
    155185    } 
     
    161191        palikka.Shape = Shape.Rectangle; 
    162192        palikka.Color = Color.BloodRed; 
     193        palikka.Restitution = 0.0; 
    163194        Add(palikka); 
    164195    } 
     
    170201        palikka.Shape = Shape.Rectangle; 
    171202        palikka.Color = Color.DarkBrown; 
     203        palikka.Restitution = 0.0; 
    172204        Add(palikka); 
    173205    } 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner.csproj

    r8527 r8591  
    111111  </ItemGroup> 
    112112  <ItemGroup> 
     113    <Compile Include="..\..\..\Little_miner1.cs" /> 
    113114    <Compile Include="Ohjelma.cs" /> 
    114     <Compile Include="..\..\..\Testi_Little_miner.cs"> 
    115       <Link>Testi_Little_miner.cs</Link> 
    116     </Compile> 
    117115    <Compile Include="Properties\AssemblyInfo.cs" /> 
    118116  </ItemGroup> 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner.csproj.Debug.cachefile

    r8527 r8591  
    11Content\miner_maa1.xnb 
     2Content\miner.xnb 
     3Content\kseina.xnb 
    24Content\miner_maa1.txt 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/ContentPipeline-{531F0758-D3DE-40CC-AEB4-21A3761C9D84}.xml

    r8527 r8591  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner_maa1.xnb</Output> 
    11       <Time>2017-06-12T14:38:11.5492589+03:00</Time> 
     11      <Time>2017-06-13T09:47:26.0545819+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>miner.png</Source> 
     15      <Name>miner</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb</Output> 
     20      <Time>2017-06-13T13:12:42.0044171+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>kseina.png</Source> 
     24      <Name>kseina</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\kseina.xnb</Output> 
     29      <Time>2017-06-13T13:20:11.4015242+03:00</Time> 
    1230    </Item> 
    1331    <BuildSuccessful>true</BuildSuccessful> 
     
    5876      <Assembly> 
    5977        <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> 
    60         <Value>2017-06-07T09:40:29.8063325+03:00</Value> 
     78        <Value>2017-06-10T12:35:11.9829674+03:00</Value> 
    6179      </Assembly> 
    6280    </Assemblies> 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/Testi_Little_miner.csproj.FileListAbsolute.txt

    r8527 r8591  
    88C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\obj\x86\Debug\Testi_Little_miner.pdb 
    99C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner_maa1.txt 
     10C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\obj\x86\Debug\Testi_Little_miner.csprojResolveAssemblyReference.cache 
     11C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb 
     12C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\kseina.xnb 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/cachefile-{531F0758-D3DE-40CC-AEB4-21A3761C9D84}-targetpath.txt

    r8527 r8591  
    11Content\miner_maa1.xnb 
     2Content\miner.xnb 
     3Content\kseina.xnb 
    24Content\miner_maa1.txt 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_minerContent/Testi_Little_minerContent.contentproj

    r8527 r8591  
    5353    </Compile> 
    5454  </ItemGroup> 
     55  <ItemGroup> 
     56    <Compile Include="miner.png"> 
     57      <Name>miner</Name> 
     58      <Importer>TextureImporter</Importer> 
     59      <Processor>TextureProcessor</Processor> 
     60    </Compile> 
     61  </ItemGroup> 
     62  <ItemGroup> 
     63    <Compile Include="kseina.png"> 
     64      <Name>kseina</Name> 
     65      <Importer>TextureImporter</Importer> 
     66      <Processor>TextureProcessor</Processor> 
     67    </Compile> 
     68  </ItemGroup> 
    5569  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5670  <!--  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.