public projectile(projectile a) : base(a.Position, a.BlockTexture) { speed = a.speed; BlockColor = a.BlockColor; width = a.width / 2; height = a.height / 2; }
// 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); }
public void addProjectile(projectile a) { loadedProjectiles.Add(a); }