示例#1
0
 public ExplosionView(Camera camera, SpriteBatch spriteBatch, Vector2 explosionPosition, Texture2D explosionTexture)
 {
     this.camera = camera;
     this.spriteBatch = spriteBatch;
     this.explosionPosition = explosionPosition;
     this._explosionTexture = explosionTexture;
     explosion = new Explosion(_explosionTexture, spriteBatch, camera, explosionPosition);
 }
示例#2
0
 // construct
 public GameView(SpriteBatch sprite, Camera cam, Texture2D explosionTexture)
 {
     camera = cam;
     spriteBatch = sprite;
     explosion = new Explosion(explosionTexture);
 }