Changeset 4732


Ignore:
Timestamp:
2013-07-26 12:24:17 (6 years ago)
Author:
totakahe
Message:

Talletus.

Location:
2013/30/TomiH/pong1/pong1
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/TomiH/pong1/pong1/pong1/pong1.cs

    r4620 r4732  
    99public class pong1 : PhysicsGame 
    1010{ 
     11 
     12    private Animation miesa; 
    1113    Vector nopeusYlos = new Vector(0, 1000); 
    1214    Vector nopeusAlas = new Vector(0, -1000); 
    1315    Image tarja = LoadImage("tarja"); 
    1416    PhysicsObject pallo; 
    15  
     17    Image dog = LoadImage("blingbling1.0"); 
    1618     
    1719     
     
    2729    public override void Begin() 
    2830    { 
    29          
     31 
     32        miesa = LoadAnimation("blingbling"); 
    3033        LuoKentta(); 
    3134        AsetaOhjaimet(); 
     
    4144    { 
    4245        pallo = new PhysicsObject(100.0, 100.0); 
    43         pallo.Image = tarja; 
    44         pallo.Shape = Shape.FromImage(tarja); 
     46        // pallo.Image = tarja; 
     47        pallo.Shape = Shape.FromImage(dog); 
    4548        // pallo.Color = Color.Emerald; 
    4649        pallo.X = -100; 
    4750        pallo.Y = 100; 
    4851        pallo.Restitution = 100; 
     52        pallo.Animation = miesa; 
     53        pallo.Animation.Start(); 
     54        pallo.Animation.FPS = 3; 
    4955        Add(pallo); 
    5056 
     
    6874        alaReuna.IsVisible = true; 
    6975 
    70         Level.BackgroundColor = Color.Black; 
     76        Level.BackgroundColor = Color.Red; 
    7177        AddCollisionHandler(pallo, KasittelePallonTormays); 
    7278    } 
  • 2013/30/TomiH/pong1/pong1/pong1Content/pong1Content.contentproj

    r4518 r4732  
    5252    </Compile> 
    5353  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="Blingbling\blingbling1.0.png"> 
     56      <Name>blingbling1.0</Name> 
     57      <Importer>TextureImporter</Importer> 
     58      <Processor>TextureProcessor</Processor> 
     59    </Compile> 
     60    <Compile Include="Blingbling\blingbling2.0.png"> 
     61      <Name>blingbling2.0</Name> 
     62      <Importer>TextureImporter</Importer> 
     63      <Processor>TextureProcessor</Processor> 
     64    </Compile> 
     65    <Compile Include="Blingbling\blingbling3.0.png"> 
     66      <Name>blingbling3.0</Name> 
     67      <Importer>TextureImporter</Importer> 
     68      <Processor>TextureProcessor</Processor> 
     69    </Compile> 
     70    <Compile Include="Blingbling\blingbling4.0.png"> 
     71      <Name>blingbling4.0</Name> 
     72      <Importer>TextureImporter</Importer> 
     73      <Processor>TextureProcessor</Processor> 
     74    </Compile> 
     75  </ItemGroup> 
     76  <ItemGroup> 
     77    <Compile Include="blingbling.anim"> 
     78      <Name>blingbling</Name> 
     79      <Importer>AnimationImporter</Importer> 
     80      <Processor>AnimationContentProcessor</Processor> 
     81    </Compile> 
     82  </ItemGroup> 
     83  <ItemGroup> 
     84    <Compile Include="blingbling1.0.png"> 
     85      <Name>blingbling1.0</Name> 
     86      <Importer>TextureImporter</Importer> 
     87      <Processor>TextureProcessor</Processor> 
     88    </Compile> 
     89  </ItemGroup> 
    5490  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5591  <!--  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.