Exemple #1
0
 public projectile(projectile a)
     : base(a.Position, a.BlockTexture)
 {
     speed = a.speed;
     BlockColor = a.BlockColor;
     width = a.width / 2;
     height = a.height / 2;
 }
Exemple #2
0
 // you Must Ready the ProjHandler; mostly because the ProjHandler will use a spritebatch and has its own check for intersections
 public void ReadyWeapons(SpriteBatch a,Camera2D b, Level c)
 {
     readyToFire = true;
     playerWeapons = new ProjHandler(a, b, this, c);
     def = new projectile((float).1, Color.Green, pos, PlayerTexture, 0, 0);
     playerWeapons.addProjectile(def);
 }
Exemple #3
0
 public void addProjectile(projectile a)
 {
     loadedProjectiles.Add(a);
 }