コード例 #1
0
ファイル: ExplosionView.cs プロジェクト: ms223uh/1DV437-2-
 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
ファイル: GameView.cs プロジェクト: ms223uh/1DV437-2-
 // construct
 public GameView(SpriteBatch sprite, Camera cam, Texture2D explosionTexture)
 {
     camera = cam;
     spriteBatch = sprite;
     explosion = new Explosion(explosionTexture);
 }