Changeset 8599 for 2017/24


Ignore:
Timestamp:
2017-06-13 14:54:51 (2 years ago)
Author:
npo17_4
Message:
 
Location:
2017/24/EmiliaM
Files:
1 deleted
10 edited

Legend:

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

    r8591 r8599  
    4444        hakku.Tag = "hakku"; 
    4545        hakku.Restitution = 0.0; 
     46        hakku.CanRotate = false; 
    4647        Add(hakku); 
    4748        
     
    8384        pelaaja.Shape = Shape.Circle; 
    8485        pelaaja.Position = paikka; 
    85          
     86        pelaaja.Mass = 100.0; 
     87        pelaaja.CanRotate = false; 
     88 
    8689        Camera.Follow(pelaaja); 
    8790        pelaaja.Image = miner; 
     
    115118        palikka.Position = paikka; 
    116119        palikka.Shape = Shape.Rectangle; 
    117         palikka.Image = kseina; 
     120        
    118121        palikka.Restitution = 0.0; 
    119122        Add(palikka); 
     
    125128        palikka.Shape = Shape.Rectangle; 
    126129        palikka.Color = Color.LightGray; 
    127         palikka.Restitution = 0.0; 
    128         Add(palikka); 
     130        AddCollisionHandler(palikka, "hakku", KiviTuhoutuu); 
     131        palikka.Restitution = 0.0; 
     132        Add(palikka); 
     133    } 
     134 
     135    void KiviTuhoutuu(PhysicsObject palikka, PhysicsObject hakku) 
     136    { 
     137        palikka.Destroy(); 
    129138    } 
    130139 
     
    181190    void LuoIsokivi(Vector paikka, double leveys, double korkeus) 
    182191    { 
    183         PhysicsObject palikka = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     192        PhysicsObject palikka = PhysicsObject.CreateStaticObject(leveys + 40.0, korkeus +40.0); 
    184193        palikka.Position = paikka; 
    185194        palikka.Shape = Shape.Rectangle; 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/ContentPipeline-{531F0758-D3DE-40CC-AEB4-21A3761C9D84}.xml

    r8591 r8599  
    1919      <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb</Output> 
    2020      <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> 
    3021    </Item> 
    3122    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/Testi_Little_miner.csproj.FileListAbsolute.txt

    r8591 r8599  
    1010C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\obj\x86\Debug\Testi_Little_miner.csprojResolveAssemblyReference.cache 
    1111C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb 
    12 C:\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

    r8591 r8599  
    11Content\miner_maa1.xnb 
    22Content\miner.xnb 
    3 Content\kseina.xnb 
    43Content\miner_maa1.txt 
  • 2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_minerContent/Testi_Little_minerContent.contentproj

    r8591 r8599  
    6060    </Compile> 
    6161  </ItemGroup> 
    62   <ItemGroup> 
    63     <Compile Include="kseina.png"> 
    64       <Name>kseina</Name> 
    65       <Importer>TextureImporter</Importer> 
    66       <Processor>TextureProcessor</Processor> 
    67     </Compile> 
    68   </ItemGroup> 
    6962  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7063  <!--  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.