Ignore:
Timestamp:
2014-07-25 09:39:46 (6 years ago)
Author:
aajualal
Message:
 
Location:
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid.cs

    r5646 r5661  
    3232    private Image Healing = LoadImage("Healing"); 
    3333    const double nopeus = 200; 
    34     const double hyppyNopeus = 750; 
     34    const double hyppyNopeus = 350; 
    3535    const int RUUDUN_KOKO = 40; 
    3636    PlasmaCannon pelaajan1Ase; 
     
    105105        Vihu stumper = new Vihu(leveys - 4, korkeus - 4); 
    106106        stumper.IgnoresCollisionResponse = false; 
     107             
    107108        stumper.Position = paikka; 
    108109        stumper.Image = tahtiKuva; 
     
    111112        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
    112113        tasoAivot.Speed = 100; 
    113  
     114        tasoAivot.TriesToJump = false; 
     115        stumper.CollisionIgnoreGroup = 2; 
    114116        stumper.Brain = tasoAivot; 
    115117 
     
    190192    void Ammu(PlasmaCannon Ase) 
    191193    { 
    192         Ase.Shoot(); 
    193         pelaaja1.Animation = new Animation(shootinganimation); 
    194         pelaaja1.Animation.Start(); 
     194       PhysicsObject ammus = Ase.Shoot(); 
     195       if (ammus != null) 
     196       { 
     197           ammus.IgnoresCollisionResponse = true; 
     198           pelaaja1.Animation = new Animation(shootinganimation); 
     199           pelaaja1.Animation.Start(); 
     200       } 
    195201    } 
    196202 
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/ContentPipeline-{ECF942E0-B21C-45ED-8977-79F4B42A7C44}.xml

    r5646 r5661  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-07-24T14:39:19.03348+03:00</Time> 
     38      <Time>2014-07-25T09:29:14.7353146+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
Note: See TracChangeset for help on using the changeset viewer.