Ejemplo n.º 1
0
 public Bullet(Game1 game, ContentManager content, BulletModel model, int xPosition)
 {
     this.game    = game;
     this.content = content;
     texture      = model.texture;
     LoadContent(xPosition);
 }
Ejemplo n.º 2
0
 public void LoadContent(ContentManager content)
 {
     this.content  = content;
     shootSound    = content.Load <SoundEffect>("Shoot");
     texture       = content.Load <Texture2D>("player");
     bounds.Width  = 50;
     bounds.Height = 50;
     bounds.X      = game.GraphicsDevice.Viewport.Width / 2 - 50;
     bounds.Y      = 0;
     bulletModel   = new BulletModel(content);
 }