Ignore:
Timestamp:
2011-06-30 10:36:54 (8 years ago)
Author:
teeevasa
Message:

initial bullet collision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2337 r2338  
    3131        pistol.Y = 5; 
    3232        this.Weapon = pistol; 
     33 
     34        //pistol.ProjectileCollision += bulletReachedTarget; 
    3335        } 
    3436 
     
    4547        PhysicsObject bullet = this.Weapon.Shoot(); 
    4648        bullet.Hit(new Vector(1000, 0)); 
     49 
     50        // As of now weapons are set to have infinite ammo, but that might change 
     51        if (bullet != null) 
     52        {  
     53             
     54        } 
     55    } 
     56 
     57    void bulletReachedTarget(Bullet bullet, MeleeAlien target) 
     58    {  
     59     
    4760    } 
    4861 
Note: See TracChangeset for help on using the changeset viewer.