Changeset 1744 for 2011/23


Ignore:
Timestamp:
2011-06-07 22:05:13 (8 years ago)
Author:
hejumunt
Message:
 
Location:
2011/23/hejumunt/RunRunRun/RunRunRun
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/hejumunt/RunRunRun/RunRunRun/RunRunRun/Peli.cs

    r1742 r1744  
    1010{ 
    1111    Image hahmonKuva = LoadImage("hahmo"); 
     12    Image talonKuva = LoadImage("talo"); 
    1213    Shape hahmonMuoto; 
    1314 
     
    3132        TileMap kentta = TileMap.FromFile("kentta.txt"); 
    3233        kentta['%'] = lisaaTaso; 
    33         kentta['#'] = lisaaTaso; 
     34        kentta['#'] = lisaaTalo; 
    3435        kentta['/'] = lisaaTaso; 
    3536        kentta['='] = lisaaTaso; 
    3637        kentta['+'] = lisaaTaso; 
     38        kentta['K'] = lisaaKatto; 
    3739        kentta.Insert(40.0, 40.0); 
    3840 
     
    5961        taso.Color = Color.Green; 
    6062        return taso; 
     63    } 
     64    PhysicsObject lisaaTalo() 
     65    { 
     66        PhysicsObject talo = PhysicsObject.CreateStaticObject(40.0, 40.0); 
     67        talo.Image = talonKuva; 
     68        return talo; 
     69    } 
     70    PhysicsObject lisaaKatto() 
     71    { 
     72        PhysicsObject katto = PhysicsObject.CreateStaticObject(40.0, 40.0); 
     73        return katto; 
    6174    } 
    6275    void AloitaPeli() 
  • 2011/23/hejumunt/RunRunRun/RunRunRun/RunRunRunContent/RunRunRunContent.contentproj

    r1739 r1744  
    4949    </Compile> 
    5050  </ItemGroup> 
     51  <ItemGroup> 
     52    <Compile Include="talo.png"> 
     53      <Name>talo</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.