Changeset 3740 for 2012/30


Ignore:
Timestamp:
2012-07-25 10:35:58 (11 years ago)
Author:
tasalmik
Message:

Talletus.

Location:
2012/30/TapaniS
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2012/30/TapaniS/The Slayer task Marsu/The Slayer task Marsu/The Slayer task Marsu/The_Slayer_task_Marsu.cs

    r3737 r3740  
    1111    PlatformCharacter pelaaja; 
    1212    Image pelaajanKuva = LoadImage("ok"); 
    13     PlatformCharacter2 vihu; 
     13     
    1414    Image vihunKuva = LoadImage("Marsuvihu1"); 
     15     
     16 
    1517 
    1618 
     
    3436        ruudut.SetTileMethod(Color.LimeGreen, LuoKukka); 
    3537 
    36         ruudut.Execute(20, 20); 
     38        ruudut.Execute(22, 20); 
    3739        Level.CreateBorders(); 
    3840        AsetaOhjaimet(); 
     
    112114    void LuoPelaaja(Vector paikka, double leveys, double korkeus) 
    113115    { 
     116         
    114117        pelaaja = new PlatformCharacter(30, 50); 
    115118        pelaaja.Position = paikka; 
    116119        Add(pelaaja); 
    117120        pelaaja.Image = pelaajanKuva; 
     121        pelaaja.Tag = "pelaaja"; 
    118122        AssaultRifle ase = new AssaultRifle(10, 10); 
    119123        pelaaja.Weapon = ase; 
     
    123127    void LuoVihollinen(Vector paikka, double leveys, double korkeus) 
    124128    { 
    125         vihu = new PlatformCharacter2(30, 50); 
     129        PlatformCharacter vihu = new PlatformCharacter(25, 40); 
     130        vihu.Tag = "vihu"; 
    126131        vihu.Position = paikka; 
    127         Add(pelaaja); 
     132        Add(vihu); 
    128133        vihu.Image = vihunKuva; 
    129  
     134        PlatformWandererBrain seuraajanAivot = new PlatformWandererBrain(); 
     135        seuraajanAivot.TriesToJump = true; 
     136        seuraajanAivot.FallsOffPlatforms = true; 
     137        vihu.Brain = seuraajanAivot; 
     138        seuraajanAivot.Active = true; 
    130139 
    131140    } 
     
    152161    { 
    153162        PhysicsObject ammus = ase.Shoot(); 
    154         ase.FireRate = 1.0; 
     163        ase.FireRate = 2.0; 
    155164        ase.AmmoIgnoresGravity = false; 
    156165        ase.Ammo.Value = 50; 
  • 2012/30/TapaniS/The Slayer task Marsu/The Slayer task Marsu/The Slayer task MarsuContent/The Slayer task MarsuContent.contentproj

    r3737 r3740  
    4545  </ItemGroup> 
    4646  <ItemGroup> 
    47     <Compile Include="Kentta.png"> 
    48       <Name>Kentta</Name> 
    49       <Importer>TextureImporter</Importer> 
    50       <Processor>TextureProcessor</Processor> 
    51     </Compile> 
    52   </ItemGroup> 
    53   <ItemGroup> 
    5447    <Compile Include="ok.png"> 
    5548      <Name>ok</Name> 
     
    6558    </Compile> 
    6659  </ItemGroup> 
     60  <ItemGroup> 
     61    <Compile Include="Kentta.png"> 
     62      <Name>Kentta</Name> 
     63      <Importer>TextureImporter</Importer> 
     64      <Processor>TextureProcessor</Processor> 
     65    </Compile> 
     66  </ItemGroup> 
     67  <ItemGroup> 
     68    <Compile Include="Marsuvihu2.png"> 
     69      <Name>Marsuvihu2</Name> 
     70      <Importer>TextureImporter</Importer> 
     71      <Processor>TextureProcessor</Processor> 
     72    </Compile> 
     73  </ItemGroup> 
    6774  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6875  <!--  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.