Changeset 2152


Ignore:
Timestamp:
2011-06-23 10:37:47 (8 years ago)
Author:
juiitamm
Message:

Talletus.

Location:
2011/26/tekrjant/TestiPeli/TestiPeli
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/tekrjant/TestiPeli/TestiPeli/TestiPeli/Peli.cs

    r2149 r2152  
    1313        Gravity = new Vector(0, -1000); 
    1414 
    15         PhysicsObject norsupallo = new PhysicsObject(50, 50, Shape.Circle); 
    16         norsupallo.Image = LoadImage("norsu"); 
    17         norsupallo.Y = Level.Top - 25; 
    18         Add(norsupallo); 
     15        for (int i = 0; i < 20; i++) 
     16        { 
     17            PhysicsObject norsupallo = new PhysicsObject(50, 50, Shape.Circle); 
     18            norsupallo.Image = LoadImage("norsu"); 
     19            norsupallo.X = RandomGen.NextDouble(Level.Left + 25, Level.Right - 25); 
     20            norsupallo.Y = Level.Top - 25; 
     21            Add(norsupallo); 
     22        } 
    1923 
    2024        Level.CreateBorders(); 
  • 2011/26/tekrjant/TestiPeli/TestiPeli/TestiPeli/TestiPeli.csproj

    r2148 r2152  
    118118    <Content Include="Game.ico" /> 
    119119    <Content Include="GameThumbnail.png" /> 
     120    <Content Include="tiedosto.txt" /> 
     121    <Content Include="tiedosto2.txt" /> 
    120122  </ItemGroup> 
    121123  <ItemGroup> 
  • 2011/26/tekrjant/TestiPeli/TestiPeli/TestiPeliContent/TestiPeliContent.contentproj

    r2149 r2152  
    4949    </Compile> 
    5050  </ItemGroup> 
     51  <ItemGroup> 
     52    <Compile Include="norsu4testing.png"> 
     53      <Name>norsu4testing</Name> 
     54      <Importer>TextureImporter</Importer> 
     55      <Processor>TextureProcessor</Processor> 
     56    </Compile> 
     57  </ItemGroup> 
    5158  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5259  <!--  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.