Changeset 2149


Ignore:
Timestamp:
2011-06-23 09:53:22 (8 years ago)
Author:
juiitamm
Message:

Talletus.

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

Legend:

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

    r2148 r2149  
    1111    public override void Begin() 
    1212    { 
    13         // TODO: Kirjoita ohjelmakoodisi tähän 
     13        Gravity = new Vector(0, -1000); 
     14 
     15        PhysicsObject norsupallo = new PhysicsObject(50, 50, Shape.Circle); 
     16        norsupallo.Image = LoadImage("norsu"); 
     17        norsupallo.Y = Level.Top - 25; 
     18        Add(norsupallo); 
     19 
     20        Level.CreateBorders(); 
    1421    } 
    1522} 
  • 2011/26/tekrjant/TestiPeli/TestiPeli/TestiPeliContent/TestiPeliContent.contentproj

    r2148 r2149  
    4242    </Reference> 
    4343  </ItemGroup> 
     44  <ItemGroup> 
     45    <Compile Include="norsu.png"> 
     46      <Name>norsu</Name> 
     47      <Importer>TextureImporter</Importer> 
     48      <Processor>TextureProcessor</Processor> 
     49    </Compile> 
     50  </ItemGroup> 
    4451  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4552  <!--  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.