Changeset 330 for joonas_v


Ignore:
Timestamp:
2009-08-06 10:04:23 (12 years ago)
Author:
jovivavi
Message:
 
Location:
joonas_v/PakoKoulusta
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • joonas_v/PakoKoulusta/Content/Content.contentproj

    r316 r330  
    8181    </Compile> 
    8282  </ItemGroup> 
     83  <ItemGroup> 
     84    <Compile Include="pukki1.png"> 
     85      <Name>pukki1</Name> 
     86      <Importer>TextureImporter</Importer> 
     87      <Processor>TextureProcessor</Processor> 
     88    </Compile> 
     89  </ItemGroup> 
     90  <ItemGroup> 
     91    <Compile Include="auto.png"> 
     92      <Name>auto</Name> 
     93      <Importer>TextureImporter</Importer> 
     94      <Processor>TextureProcessor</Processor> 
     95    </Compile> 
     96  </ItemGroup> 
    8397  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    8498  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • joonas_v/PakoKoulusta/Peli.cs

    r316 r330  
    132132            for (int i = 0; i < 10; i++) 
    133133            { 
    134                 PhysicsObject pukki = PhysicsObject.CreateStaticObject(Shapes.CreateRectangle(50, 100)); 
     134                //PhysicsObject pukki = PhysicsObject.CreateStaticObject(Shapes.CreateTriangle(75, 200)); 
     135                Texture2D tekstuuri = Content.Load<Texture2D>("pukki1"); 
     136                PhysicsObject pukki = PhysicsObject.CreateStaticObject(Shapes.CreateFromTexture(tekstuuri, new Vector2D(100, 100), 100)); 
     137                pukki.Texture = tekstuuri; 
    135138                pukki.X = RandomGen.NextDouble(-4000.0, 4000.0); 
    136139                pukki.Y = y; 
     
    146149                auto.X = RandomGen.NextDouble(-4200, 4200); 
    147150                auto.Y=y; 
     151                auto.Texture = Content.Load<Texture2D>("auto"); 
    148152                kentta.Objects.Add(auto); 
    149153                AddCollisionHandler(auto, loppu); 
Note: See TracChangeset for help on using the changeset viewer.