- Timestamp:
- 2011-06-30 10:58:38 (12 years ago)
- Location:
- 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemies.cs
r2261 r2343 14 14 { 15 15 this.Image = portrait; 16 this.Tag = "MeleeAlien"; 16 17 } 17 18 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs
r2342 r2343 47 47 { 48 48 PhysicsObject bullet = this.Weapon.Shoot(); 49 //bullet.Hit(new Vector(1000, 0));50 49 51 50 // As of now weapons are set to have infinite ammo, but that might change … … 57 56 58 57 void bulletReachedTarget(PhysicsObject bullet, PhysicsObject target) 59 { 60 58 { 59 bullet.Destroy(); 60 61 if (target.Tag == "MeleeAlien") 62 { 63 target.Destroy(); 64 } 61 65 } 62 66
Note: See TracChangeset
for help on using the changeset viewer.