Changeset 2365 for 2011/26


Ignore:
Timestamp:
2011-06-30 14:35:00 (8 years ago)
Author:
saselamp
Message:
 
Location:
2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix/Peli.cs

    r2357 r2365  
    2222 
    2323    GameObject heppu; 
     24    Image paikallaanvasemmalle1 = LoadImage("heppuleft1"); 
     25    Image paikallaanoikelle1 = LoadImage("heppu"); 
     26 
     27    Image[] kavelyvasemmalle1 = LoadImages("heppuleft1", "heppuleft2", "heppuleft3"); 
     28    Image[] kavelyoikelle1; 
     29 
    2430    Image paikallaanvasemmalle = LoadImage("hahmo"); 
    2531    Image paikallaanoikelle = LoadImage("hahmo"); 
     
    4854    public override void Begin() 
    4955    { 
    50          
    5156        paikallaanoikelle = Image.Mirror(paikallaanvasemmalle); 
    5257        kavelyvasemmalle = Image.Mirror(kavelyoikelle); 
    53          
    54        
    55          
     58 
     59        paikallaanoikelle1 = Image.Mirror(paikallaanvasemmalle1); 
     60        kavelyoikelle1 = Image.Mirror(kavelyvasemmalle1); 
     61 
    5662        
    5763         
     
    98104    RandomMoverBrain Satunnaisaivot = new RandomMoverBrain(10000); 
    99105 
     106     
     107    
     108 
    100109    PhysicsObject lisaakoivu() 
    101110    { 
     
    199208        heppu.Tag = "heppu"; 
    200209        heppu.Image = heppukuva; 
     210        heppu.LeftIdleAnimation = new Animation(paikallaanvasemmalle1); 
     211        heppu.RightIdleAnimation = new Animation(paikallaanoikelle1); 
     212 
     213        heppu.LeftWalkingAnimation = new Animation(kavelyvasemmalle1); 
     214        heppu.RightWalkingAnimation = new Animation(kavelyoikelle1); 
    201215        Add(heppu); 
    202216        return heppu; 
     
    220234        return pelaaja1; 
    221235 
    222     } 
    223  
    224      
     236         
     237         
     238 
     239    } 
     240 
     241      
     242     
     243 
    225244    void lisaaNappaimet() 
    226245    { 
     
    261280                pelaaja.Destroy(); 
    262281 
     282                 
     283 
    263284 
    264285                
  • 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fixContent/world of Chuckland fix fixContent.contentproj

    r2317 r2365  
    185185    </Compile> 
    186186  </ItemGroup> 
     187  <ItemGroup> 
     188    <Compile Include="heppuleft1.bmp"> 
     189      <Name>heppuleft1</Name> 
     190      <Importer>TextureImporter</Importer> 
     191      <Processor>TextureProcessor</Processor> 
     192    </Compile> 
     193  </ItemGroup> 
     194  <ItemGroup> 
     195    <Compile Include="heppuleft2.bmp"> 
     196      <Name>heppuleft2</Name> 
     197      <Importer>TextureImporter</Importer> 
     198      <Processor>TextureProcessor</Processor> 
     199    </Compile> 
     200  </ItemGroup> 
     201  <ItemGroup> 
     202    <Compile Include="heppuleft3.bmp"> 
     203      <Name>heppuleft3</Name> 
     204      <Importer>TextureImporter</Importer> 
     205      <Processor>TextureProcessor</Processor> 
     206    </Compile> 
     207  </ItemGroup> 
    187208  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    188209  <!--  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.