示例#1
0
 public void LoadContent(PlayerBulletModel playerBulletModel)
 {
     bounds.Width    = 20;
     bounds.Height   = 20;
     texture         = playerBulletModel.Texture;
     explodedTexture = playerBulletModel.ExplodedTexture;
     grid.Add(this, new Vector2(bounds.X, bounds.Y));
 }
示例#2
0
 public PlayerBullet(Game1 game, int xBounds, int yBounds, float rotation, Vector2 destination, PlayerBulletModel playerBulletModel, Grid grid, SoundEffect explosion)
 {
     this.game        = game;
     this.destination = destination;
     this.rotation    = rotation;
     bounds.X         = xBounds;
     bounds.Y         = yBounds;
     this.grid        = grid;
     this.explosion   = explosion;
     LoadContent(playerBulletModel);
 }